Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/opengl/scene_opengl.cpp
Show First 20 Lines • Show All 411 Lines • ▼ Show 20 Line(s) | 410 | if (!hasGLVersion(3, 2)) { | |||
---|---|---|---|---|---|
412 | return; | 412 | return; | ||
413 | } | 413 | } | ||
414 | } else if (!hasGLVersion(3, 0)) { | 414 | } else if (!hasGLVersion(3, 0)) { | ||
415 | return; | 415 | return; | ||
416 | } | 416 | } | ||
417 | // can only be queried with either OpenGL >= 3.0 or OpenGL ES of at least 3.1 | 417 | // can only be queried with either OpenGL >= 3.0 or OpenGL ES of at least 3.1 | ||
418 | GLint value = 0; | 418 | GLint value = 0; | ||
419 | glGetIntegerv(GL_CONTEXT_FLAGS, &value); | 419 | glGetIntegerv(GL_CONTEXT_FLAGS, &value); | ||
420 | if (!(value & GL_CONTEXT_FLAG_DEBUG_BIT)) { | 420 | if (!(value & GL_CONTEXT_FLAG_DEBUG_BIT) && | ||
421 | !checkGLError("initDebugOutput")) { | ||||
421 | return; | 422 | return; | ||
422 | } | 423 | } | ||
423 | } | 424 | } | ||
424 | 425 | | |||
425 | gs_debuggedScene = this; | 426 | gs_debuggedScene = this; | ||
426 | 427 | | |||
427 | // Set the callback function | 428 | // Set the callback function | ||
428 | auto callback = [](GLenum source, GLenum type, GLuint id, | 429 | auto callback = [](GLenum source, GLenum type, GLuint id, | ||
▲ Show 20 Lines • Show All 2136 Lines • Show Last 20 Lines |