mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
gl_common: minor cosmetic changes
Why are you reading this message.
This commit is contained in:
parent
66f3e93ed3
commit
9acd263542
@ -503,13 +503,13 @@ void mpgl_load_functions(GL *gl, void *(*getProcAddress)(const GLubyte *),
|
|||||||
const char *version = gl->GetString(GL_VERSION);
|
const char *version = gl->GetString(GL_VERSION);
|
||||||
sscanf(version, "%d.%d", &major, &minor);
|
sscanf(version, "%d.%d", &major, &minor);
|
||||||
gl->version = MPGL_VER(major, minor);
|
gl->version = MPGL_VER(major, minor);
|
||||||
mp_msg(log, MSGL_V, "Detected OpenGL %d.%d.\n", major, minor);
|
mp_verbose(log, "Detected OpenGL %d.%d.\n", major, minor);
|
||||||
|
|
||||||
mp_msg(log, MSGL_V, "GL_VENDOR='%s'\n", gl->GetString(GL_VENDOR));
|
mp_verbose(log, "GL_VENDOR='%s'\n", gl->GetString(GL_VENDOR));
|
||||||
mp_msg(log, MSGL_V, "GL_RENDERER='%s'\n", gl->GetString(GL_RENDERER));
|
mp_verbose(log, "GL_RENDERER='%s'\n", gl->GetString(GL_RENDERER));
|
||||||
mp_msg(log, MSGL_V, "GL_VERSION='%s'\n", gl->GetString(GL_VERSION));
|
mp_verbose(log, "GL_VERSION='%s'\n", gl->GetString(GL_VERSION));
|
||||||
mp_msg(log, MSGL_V, "GL_SHADING_LANGUAGE_VERSION='%s'\n",
|
mp_verbose(log, "GL_SHADING_LANGUAGE_VERSION='%s'\n",
|
||||||
gl->GetString(GL_SHADING_LANGUAGE_VERSION));
|
gl->GetString(GL_SHADING_LANGUAGE_VERSION));
|
||||||
|
|
||||||
// Note: This code doesn't handle CONTEXT_FORWARD_COMPATIBLE_BIT_ARB
|
// Note: This code doesn't handle CONTEXT_FORWARD_COMPATIBLE_BIT_ARB
|
||||||
// on OpenGL 3.0 correctly. Apparently there's no way to detect this
|
// on OpenGL 3.0 correctly. Apparently there's no way to detect this
|
||||||
@ -545,9 +545,8 @@ void mpgl_load_functions(GL *gl, void *(*getProcAddress)(const GLubyte *),
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (has_legacy)
|
if (has_legacy)
|
||||||
mp_msg(log, MSGL_V, "OpenGL legacy compat. found.\n");
|
mp_verbose(log, "OpenGL legacy compat. found.\n");
|
||||||
mp_msg(log, MSGL_DEBUG, "Combined OpenGL extensions string:\n%s\n",
|
mp_dbg(log, "Combined OpenGL extensions string:\n%s\n", gl->extensions);
|
||||||
gl->extensions);
|
|
||||||
|
|
||||||
for (int n = 0; n < sizeof(gl_functions) / sizeof(gl_functions[0]); n++) {
|
for (int n = 0; n < sizeof(gl_functions) / sizeof(gl_functions[0]); n++) {
|
||||||
struct gl_functions *section = &gl_functions[n];
|
struct gl_functions *section = &gl_functions[n];
|
||||||
@ -627,7 +626,7 @@ void mpgl_load_functions(GL *gl, void *(*getProcAddress)(const GLubyte *),
|
|||||||
if (!is_software_gl(gl))
|
if (!is_software_gl(gl))
|
||||||
gl->mpgl_caps |= MPGL_CAP_NO_SW;
|
gl->mpgl_caps |= MPGL_CAP_NO_SW;
|
||||||
|
|
||||||
mp_msg(log, MSGL_V, "Detected OpenGL features:");
|
mp_verbose(log, "Detected OpenGL features:");
|
||||||
list_features(gl->mpgl_caps, log, MSGL_V, false);
|
list_features(gl->mpgl_caps, log, MSGL_V, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user