Skip to content

Commit b2f401f

Browse files
committedMar 17, 2018
Add (debug output) detection of OpenGL through 4.1
1 parent 37af8da commit b2f401f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎lib/ivis_opengl/screen.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,21 @@ bool screenInitialise()
243243
debug(LOG_3D, " * OpenGL 2.0 %s supported!", GLEW_VERSION_2_0 ? "is" : "is NOT");
244244
debug(LOG_3D, " * OpenGL 2.1 %s supported!", GLEW_VERSION_2_1 ? "is" : "is NOT");
245245
debug(LOG_3D, " * OpenGL 3.0 %s supported!", GLEW_VERSION_3_0 ? "is" : "is NOT");
246+
#ifdef GLEW_VERSION_3_1
247+
debug(LOG_3D, " * OpenGL 3.1 %s supported!", GLEW_VERSION_3_1 ? "is" : "is NOT");
248+
#endif
249+
#ifdef GLEW_VERSION_3_2
250+
debug(LOG_3D, " * OpenGL 3.2 %s supported!", GLEW_VERSION_3_2 ? "is" : "is NOT");
251+
#endif
252+
#ifdef GLEW_VERSION_3_3
253+
debug(LOG_3D, " * OpenGL 3.3 %s supported!", GLEW_VERSION_3_3 ? "is" : "is NOT");
254+
#endif
255+
#ifdef GLEW_VERSION_4_0
256+
debug(LOG_3D, " * OpenGL 4.0 %s supported!", GLEW_VERSION_4_0 ? "is" : "is NOT");
257+
#endif
258+
#ifdef GLEW_VERSION_4_1
259+
debug(LOG_3D, " * OpenGL 4.1 %s supported!", GLEW_VERSION_4_1 ? "is" : "is NOT");
260+
#endif
246261
debug(LOG_3D, " * Texture compression %s supported.", GLEW_ARB_texture_compression ? "is" : "is NOT");
247262
debug(LOG_3D, " * Two side stencil %s supported.", GLEW_EXT_stencil_two_side ? "is" : "is NOT");
248263
debug(LOG_3D, " * ATI separate stencil is%s supported.", GLEW_ATI_separate_stencil ? "" : " NOT");

0 commit comments

Comments
 (0)