Commit b2ab869d authored by Robert Menzel's avatar Robert Menzel
parents deae0f20 a54c596b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment