aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/render/gles2.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h
index a68170bc..a64aa77c 100644
--- a/include/render/gles2.h
+++ b/include/render/gles2.h
@@ -14,17 +14,6 @@
#include <wlr/render/wlr_texture.h>
#include <wlr/util/log.h>
-struct wlr_gles2_procs {
- PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES;
- PFNGLDEBUGMESSAGECALLBACKKHRPROC glDebugMessageCallbackKHR;
- PFNGLDEBUGMESSAGECONTROLKHRPROC glDebugMessageControlKHR;
- PFNGLPOPDEBUGGROUPKHRPROC glPopDebugGroupKHR;
- PFNGLPUSHDEBUGGROUPKHRPROC glPushDebugGroupKHR;
- PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glEGLImageTargetRenderbufferStorageOES;
-};
-
-extern struct wlr_gles2_procs gles2_procs;
-
struct wlr_gles2_pixel_format {
enum wl_shm_format wl_format;
GLint gl_format, gl_type;
@@ -56,6 +45,15 @@ struct wlr_gles2_renderer {
} exts;
struct {
+ PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES;
+ PFNGLDEBUGMESSAGECALLBACKKHRPROC glDebugMessageCallbackKHR;
+ PFNGLDEBUGMESSAGECONTROLKHRPROC glDebugMessageControlKHR;
+ PFNGLPOPDEBUGGROUPKHRPROC glPopDebugGroupKHR;
+ PFNGLPUSHDEBUGGROUPKHRPROC glPushDebugGroupKHR;
+ PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glEGLImageTargetRenderbufferStorageOES;
+ } procs;
+
+ struct {
struct {
GLuint program;
GLint proj;