Browse Source

Fix SampleQuery GL test on NVidia.

For some reason binding a framebuffer resulted in populating the sample
query.

YAY ALL TESTS PASS AGAIN WOW
pull/132/head
Vladimír Vondruš 10 years ago
parent
commit
1a685842c8
  1. 3
      src/Magnum/Test/SampleQueryGLTest.cpp

3
src/Magnum/Test/SampleQueryGLTest.cpp

@ -168,6 +168,8 @@ void SampleQueryGLTest::querySamplesPassed() {
MAGNUM_VERIFY_NO_ERROR();
framebuffer.bind();
#ifndef MAGNUM_TARGET_GLES
SampleQuery q{SampleQuery::Target::SamplesPassed};
#else
@ -175,7 +177,6 @@ void SampleQueryGLTest::querySamplesPassed() {
#endif
q.begin();
framebuffer.bind();
mesh.draw(shader);
q.end();

Loading…
Cancel
Save