diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-26 13:47:18 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-26 13:47:18 +0000 |
commit | 1feebc74c76bc7e1efb78f10843c79b385d12264 (patch) | |
tree | ade7489a6c1d7a6d64260819c147fe8352e78d5a /libvo/gl_common.c | |
parent | df2887dd4a7c7bc6d23928ecdf95b3afbc79648f (diff) | |
download | mpv-1feebc74c76bc7e1efb78f10843c79b385d12264.tar.bz2 mpv-1feebc74c76bc7e1efb78f10843c79b385d12264.tar.xz |
OpenGL fixes for windows and vo_gl.c ported to windows.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16110 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.c')
-rw-r--r-- | libvo/gl_common.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 05c6974967..2c3b9ebcc6 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -3,7 +3,7 @@ void (APIENTRY *BindBuffer)(GLenum, GLuint); GLvoid* (APIENTRY *MapBuffer)(GLenum, GLenum); GLboolean (APIENTRY *UnmapBuffer)(GLenum); -void (APIENTRY *BufferData)(GLenum, GLsizeiptr, const GLvoid *, GLenum); +void (APIENTRY *BufferData)(GLenum, intptr_t, const GLvoid *, GLenum); void (APIENTRY *CombinerParameterfv)(GLenum, const GLfloat *); void (APIENTRY *CombinerParameteri)(GLenum, GLint); void (APIENTRY *CombinerInput)(GLenum, GLenum, GLenum, GLenum, GLenum, @@ -257,6 +257,10 @@ static void getFunctions() { } #ifdef GL_WIN32 +static void *w32gpa(const GLubyte *procName) { + return wglGetProcAddress(procName); +} + int setGlWindow(int *vinfo, HGLRC *context, HWND win) { int new_vinfo; @@ -304,7 +308,7 @@ int setGlWindow(int *vinfo, HGLRC *context, HWND win) wglDeleteContext(*context); *context = new_context; *vinfo = new_vinfo; - getProcAddress = wglGetProcAddress; + getProcAddress = w32gpa; getFunctions(); // and inform that reinit is neccessary |