diff options
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r-- | video/out/opengl/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h index a9e67d9756..a6b02c9366 100644 --- a/video/out/opengl/common.h +++ b/video/out/opengl/common.h @@ -59,6 +59,7 @@ enum { MPGL_CAP_COMPUTE_SHADER = (1 << 23), // GL_ARB_compute_shader & GL_ARB_shader_image_load_store MPGL_CAP_NESTED_ARRAY = (1 << 24), // GL_ARB_arrays_of_arrays + MPGL_CAP_SLOW_DR = (1 << 29), // direct rendering is assumed to be slow MPGL_CAP_SW = (1 << 30), // indirect or sw renderer }; @@ -87,6 +88,11 @@ struct GL { int mpgl_caps; // Bitfield of MPGL_CAP_* constants bool debug_context; // use of e.g. GLX_CONTEXT_DEBUG_BIT_ARB + // Set to false if the implementation follows normal GL semantics, which is + // upside down. Set to true if it does *not*, i.e. if rendering is right + // side up + bool flipped; + // Copy of function pointer used to load GL. // Caution: Not necessarily valid to use after VO init has completed! void *(*get_fn)(void *ctx, const char *n); |