From a0b43a11e4e0edd6077c926f012c5f5c31a04e45 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 3 Oct 2012 01:54:13 +0200 Subject: vo_gl3: make it work on OpenGL 2.1 Now vo_gl3 should work with standard OpenGL 2.1, as long as the GL_ARB_texture_rg extension is available. Optional features, which require features that are always in OpenGL 3.0, but are available as extensions only in OpenGL 2.1, are automatically disabled. The force-gl2 suboption, which was an unreliable hack to run vo_gl3 in an OpenGL 2.1 context, is removed. Significant changes are done to the extension loader to make it easier to identify optional OpenGL features. Context creation is a bit changed to simplify the code and to handle the fallback better if OpenGL 3 context creation fails, and creating an OpenGL legacy context is attempted. Based on the initial work by Rudolf Polzer , which included making the shader GLSL 1.20 compatible, and more. --- libvo/video_out.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libvo/video_out.h') diff --git a/libvo/video_out.h b/libvo/video_out.h index 2cd314f281..5ab5f96301 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -126,6 +126,7 @@ typedef struct { #define VOFLAG_FLIPPING 0x08 #define VOFLAG_HIDDEN 0x10 //< Use to create a hidden window #define VOFLAG_STEREO 0x20 //< Use to create a stereo-capable window +#define VOFLAG_GL_DEBUG 0x40 // Hint to request debug OpenGL context typedef struct vo_info_s { -- cgit v1.2.3