From cf7bae16a5968c174f1d4f55bc558eeb5876ca76 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 30 Nov 2011 09:15:09 +0000 Subject: [PATCH] bind to GL_ARB_framebuffer_object functions correctly - unlike almost everything else, these lack the ARB suffix (issue 8 in the spec) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11583 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=fec24b7a98657412f8403d7edb06bd17f0ff007c --- vid_shared.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/vid_shared.c b/vid_shared.c index 9f24869d..0859617f 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -867,26 +867,26 @@ static dllfunction_t vbofuncs[] = static dllfunction_t arbfbofuncs[] = { - {"glIsRenderbufferARB" , (void **) &qglIsRenderbuffer}, - {"glBindRenderbufferARB" , (void **) &qglBindRenderbuffer}, - {"glDeleteRenderbuffersARB" , (void **) &qglDeleteRenderbuffers}, - {"glGenRenderbuffersARB" , (void **) &qglGenRenderbuffers}, - {"glRenderbufferStorageARB" , (void **) &qglRenderbufferStorage}, - {"glRenderbufferStorageMultisampleARB" , (void **) &qglRenderbufferStorageMultisample}, // not in GL_EXT_framebuffer_object - {"glGetRenderbufferParameterivARB" , (void **) &qglGetRenderbufferParameteriv}, - {"glIsFramebufferARB" , (void **) &qglIsFramebuffer}, - {"glBindFramebufferARB" , (void **) &qglBindFramebuffer}, - {"glDeleteFramebuffersARB" , (void **) &qglDeleteFramebuffers}, - {"glGenFramebuffersARB" , (void **) &qglGenFramebuffers}, - {"glCheckFramebufferStatusARB" , (void **) &qglCheckFramebufferStatus}, - {"glFramebufferTexture1DARB" , (void **) &qglFramebufferTexture1D}, - {"glFramebufferTexture2DARB" , (void **) &qglFramebufferTexture2D}, - {"glFramebufferTexture3DARB" , (void **) &qglFramebufferTexture3D}, - {"glFramebufferTextureLayerARB" , (void **) &qglFramebufferTextureLayer}, // not in GL_EXT_framebuffer_object - {"glFramebufferRenderbufferARB" , (void **) &qglFramebufferRenderbuffer}, - {"glGetFramebufferAttachmentParameterivARB" , (void **) &qglGetFramebufferAttachmentParameteriv}, - {"glBlitFramebufferARB" , (void **) &qglBlitFramebuffer}, // not in GL_EXT_framebuffer_object - {"glGenerateMipmapARB" , (void **) &qglGenerateMipmap}, + {"glIsRenderbuffer" , (void **) &qglIsRenderbuffer}, + {"glBindRenderbuffer" , (void **) &qglBindRenderbuffer}, + {"glDeleteRenderbuffers" , (void **) &qglDeleteRenderbuffers}, + {"glGenRenderbuffers" , (void **) &qglGenRenderbuffers}, + {"glRenderbufferStorage" , (void **) &qglRenderbufferStorage}, + {"glRenderbufferStorageMultisample" , (void **) &qglRenderbufferStorageMultisample}, // not in GL_EXT_framebuffer_object + {"glGetRenderbufferParameteriv" , (void **) &qglGetRenderbufferParameteriv}, + {"glIsFramebuffer" , (void **) &qglIsFramebuffer}, + {"glBindFramebuffer" , (void **) &qglBindFramebuffer}, + {"glDeleteFramebuffers" , (void **) &qglDeleteFramebuffers}, + {"glGenFramebuffers" , (void **) &qglGenFramebuffers}, + {"glCheckFramebufferStatus" , (void **) &qglCheckFramebufferStatus}, + {"glFramebufferTexture1D" , (void **) &qglFramebufferTexture1D}, + {"glFramebufferTexture2D" , (void **) &qglFramebufferTexture2D}, + {"glFramebufferTexture3D" , (void **) &qglFramebufferTexture3D}, + {"glFramebufferTextureLayer" , (void **) &qglFramebufferTextureLayer}, // not in GL_EXT_framebuffer_object + {"glFramebufferRenderbuffer" , (void **) &qglFramebufferRenderbuffer}, + {"glGetFramebufferAttachmentParameteriv" , (void **) &qglGetFramebufferAttachmentParameteriv}, + {"glBlitFramebuffer" , (void **) &qglBlitFramebuffer}, // not in GL_EXT_framebuffer_object + {"glGenerateMipmap" , (void **) &qglGenerateMipmap}, {NULL, NULL} }; -- 2.39.2