vo_opengl: reduce verbose output

Outputting the detected OpenGL features was useless and redundant with
the extension loading output.

Also, remove MPGL_CAP_3D_TEX from OpenGL(ES) 3.0. This block didn't
include the glTexImage3D function, so that was pointless and couldn't
have worked. The OpenGL 2.1 block does it correctly.
This commit is contained in:
wm4 2015-07-11 18:40:37 +02:00
parent 5776b0c940
commit 898855cc0d
1 changed files with 2 additions and 26 deletions

View File

@ -44,23 +44,6 @@
#include "options/options.h"
#include "options/m_option.h"
struct feature {
int id;
const char *name;
};
static const struct feature features[] = {
{MPGL_CAP_FB, "Framebuffers"},
{MPGL_CAP_VAO, "VAOs"},
{MPGL_CAP_FLOAT_TEX, "Float textures"},
{MPGL_CAP_TEX_RG, "RG textures"},
{MPGL_CAP_1D_TEX, "1D textures"},
{MPGL_CAP_3D_TEX, "3D textures"},
{MPGL_CAP_DEBUG, "debugging extensions"},
{MPGL_CAP_SW, "suspected software renderer"},
{0},
};
// This guesses if the current GL context is a suspected software renderer.
static bool is_software_gl(GL *gl)
{
@ -189,7 +172,6 @@ static const struct gl_functions gl_functions[] = {
{
.ver_core = 300,
.ver_es_core = 300,
.provides = MPGL_CAP_3D_TEX,
.functions = (const struct gl_function[]) {
DEF_FN(GetStringi),
// for ES 3.0
@ -496,15 +478,9 @@ void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n),
gl->glsl_version = 150;
}
if (is_software_gl(gl))
if (is_software_gl(gl)) {
gl->mpgl_caps |= MPGL_CAP_SW;
if (gl->mpgl_caps) {
mp_verbose(log, "Detected OpenGL features:\n");
for (const struct feature *f = &features[0]; f->id; f++) {
if ((f->id & gl->mpgl_caps))
mp_verbose(log, " - %s\n", f->name);
}
mp_verbose(log, "Detected suspected software renderer.\n");
}
// Provided for simpler handling if no framebuffer support is available.