Commit ab2e5f05 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: add GL context version to glinfo, allow in 8 bpp mode (it's still...

engine: add GL context version to glinfo, allow in 8 bpp mode (it's still backed by a GL surface, after all...)
parent a68d0d8b
......@@ -551,12 +551,6 @@ int osdcmd_glinfo(osdcmdptr_t UNUSED(parm))
{
UNREFERENCED_CONST_PARAMETER(parm);
if (bpp == 8)
{
initprintf("glinfo: not in OpenGL mode!\n");
return OSDCMD_OK;
}
initprintf("OpenGL information\n %s %s %s\n",
glinfo.vendor, glinfo.renderer, glinfo.version);
......@@ -585,6 +579,8 @@ int osdcmd_glinfo(osdcmdptr_t UNUSED(parm))
initprintf(" Vertex buffer objects: %s\n", SUPPORTED(glinfo.vbos));
#endif
initprintf(" Maximum anisotropy: %.1f%s\n", glinfo.maxanisotropy, glinfo.maxanisotropy > 1.0 ? "" : " (no anisotropic filtering)");
if (GLVersion.major)
OSD_Printf(" GL context version: %d.%d\n", GLVersion.major, GLVersion.minor);
#undef SUPPORTED
......
......@@ -1471,7 +1471,6 @@ void sdlayer_setvideomode_opengl(void)
#endif
fill_glinfo();
}
#endif // defined USE_OPENGL
......
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