[Glamor] [PATCH 1/2] glamor add dispatch for glGetError and glBufferStorage

Grigori Goronzy greg at chown.ath.cx
Sun Mar 2 06:13:51 PST 2014


From: Alex Deucher <alexander.deucher at amd.com>

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 src/glamor_gl_dispatch.c | 2 ++
 src/glamor_gl_dispatch.h | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/src/glamor_gl_dispatch.c b/src/glamor_gl_dispatch.c
index da99e26..9933eeb 100644
--- a/src/glamor_gl_dispatch.c
+++ b/src/glamor_gl_dispatch.c
@@ -111,6 +111,8 @@ glamor_gl_dispatch_init_impl(struct glamor_gl_dispatch *dispatch,
 	INIT_FUNC(dispatch, glGetProgramiv, get_proc_address);
 	INIT_FUNC(dispatch, glGetProgramInfoLog, get_proc_address);
 	INIT_FUNC(dispatch, glGetUniformLocation, get_proc_address);
+	INIT_FUNC(dispatch, glGetError, get_proc_address);
+	INIT_FUNC(dispatch, glBufferStorage, get_proc_address);
 
 	return TRUE;
       fail:
diff --git a/src/glamor_gl_dispatch.h b/src/glamor_gl_dispatch.h
index 76dadd4..b11660f 100644
--- a/src/glamor_gl_dispatch.h
+++ b/src/glamor_gl_dispatch.h
@@ -51,6 +51,7 @@ typedef struct glamor_gl_dispatch {
 	void (*glDisable) (GLenum cap);
 	void (*glBlendFunc) (GLenum sfactor, GLenum dfactor);
 	void (*glLogicOp) (GLenum opcode);
+	GLenum (*glGetError) ( void );
 
 	/* 1.3 */
 	void (*glActiveTexture) (GLenum texture);
@@ -120,6 +121,8 @@ typedef struct glamor_gl_dispatch {
 				     GLsizei * length, GLchar * infoLog);
 	GLint (*glGetUniformLocation) (GLuint program,
 				       const GLchar * name);
+	void (*glBufferStorage) (GLenum target, GLsizeiptr size,
+				 const void *data, GLbitfield flags);
 
 } glamor_gl_dispatch;
 
-- 
1.8.3.2



More information about the Glamor mailing list