Skip to content
Snippets Groups Projects
Commit b2ab869d authored by Robert Menzel's avatar Robert Menzel
Browse files
parents deae0f20 a54c596b
No related branches found
No related tags found
No related merge requests found
......@@ -135,8 +135,9 @@ public:
//! _queryType has to be GL_SAMPLES_PASSED or GL_ANY_SAMPLES_PASSED
void setType( GLenum _queryType ) {
#if (ACGL_OPENGL_VERSION < 33)
if (_queryType == GL_ANY_SAMPLES_PASSED) _queryType = GL_SAMPLES_PASSED; // GL_ANY_SAMPLES_PASSED is OpenGL 3.3 or later! But GL_SAMPLES_PASSED is a good substitute
#if (ACGL_OPENGL_VERSION <= 32)
#define ACGL_ANY_SAMPLES_PASSED 0x8C2F
if (_queryType == ACGL_ANY_SAMPLES_PASSED) _queryType = GL_SAMPLES_PASSED; // GL_ANY_SAMPLES_PASSED is OpenGL 3.3 or later! But GL_SAMPLES_PASSED is a good substitute
#endif
if (_queryType != GL_SAMPLES_PASSED) {
Utils::error() << "OcclusionQuery type " << _queryType << " not supported" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment