OpenGL 2.0 is needed to query GLSL version
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8296 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
9128fd00da
commit
1f52695730
|
@ -170,8 +170,11 @@ BOOL screenInitialise(
|
||||||
addDumpInfo(buf);
|
addDumpInfo(buf);
|
||||||
ssprintf(buf, "OpenGL Version : %s", glGetString(GL_VERSION));
|
ssprintf(buf, "OpenGL Version : %s", glGetString(GL_VERSION));
|
||||||
addDumpInfo(buf);
|
addDumpInfo(buf);
|
||||||
ssprintf(buf, "OpenGL GLSL Version : %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
|
if (GLEE_VERSION_2_0)
|
||||||
addDumpInfo(buf);
|
{
|
||||||
|
ssprintf(buf, "OpenGL GLSL Version : %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
|
||||||
|
addDumpInfo(buf);
|
||||||
|
}
|
||||||
ssprintf(buf, "Video Mode %d x %d (%d bpp) (%s)", width, height, bpp, fullScreen ? "fullscreen" : "window");
|
ssprintf(buf, "Video Mode %d x %d (%d bpp) (%s)", width, height, bpp, fullScreen ? "fullscreen" : "window");
|
||||||
addDumpInfo(buf);
|
addDumpInfo(buf);
|
||||||
/* Dump information about OpenGL implementation to the console */
|
/* Dump information about OpenGL implementation to the console */
|
||||||
|
@ -196,7 +199,10 @@ BOOL screenInitialise(
|
||||||
debug(LOG_3D, " * FrameBuffer Object (FBO) %s supported.", GLEE_EXT_framebuffer_object ? "is" : "is NOT");
|
debug(LOG_3D, " * FrameBuffer Object (FBO) %s supported.", GLEE_EXT_framebuffer_object ? "is" : "is NOT");
|
||||||
debug(LOG_3D, " * Shader Objects %s supported.", GL_ARB_shader_objects ? "is" : "is NOT");
|
debug(LOG_3D, " * Shader Objects %s supported.", GL_ARB_shader_objects ? "is" : "is NOT");
|
||||||
debug(LOG_3D, " * Vertex Buffer Object (VBO) %s supported.", GL_ARB_vertex_buffer_object ? "is" : "is NOT");
|
debug(LOG_3D, " * Vertex Buffer Object (VBO) %s supported.", GL_ARB_vertex_buffer_object ? "is" : "is NOT");
|
||||||
debug(LOG_3D, " * OpenGL GLSL Version : %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
|
if (GLEE_VERSION_2_0)
|
||||||
|
{
|
||||||
|
debug(LOG_3D, " * OpenGL GLSL Version : %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef WZ_OS_MAC
|
#ifndef WZ_OS_MAC
|
||||||
|
|
Loading…
Reference in New Issue