From f3bbcfcd63be936ba54e23a789d07e0883180393 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 17 Jan 2013 06:34:21 +0000 Subject: [PATCH] fix windows compiling by adding GL prototypes for newly-required MSAA junk. not sure what the implications are on old opengl drivers. we'll have to wait for someone to complain. --- desmume/src/OGLRender.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index d3d6e34e3..60514133b 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -257,6 +257,11 @@ OGLEXT(PFNGLFRAMEBUFFERTEXTURE2DEXTPROC,glFramebufferTexture2DEXT) OGLEXT(PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC,glCheckFramebufferStatusEXT) OGLEXT(PFNGLDELETEFRAMEBUFFERSEXTPROC,glDeleteFramebuffersEXT) OGLEXT(PFNGLBLITFRAMEBUFFEREXTPROC,glBlitFramebufferEXT) +// new stuff +OGLEXT(PFNGLGENRENDERBUFFERSEXTPROC,glGenRenderbuffersEXT) +OGLEXT(PFNGLBINDRENDERBUFFEREXTPROC,glBindRenderbufferEXT) +OGLEXT(PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC,glRenderbufferStorageMultisampleEXT) +OGLEXT(PFNGLDELETERENDERBUFFERSEXTPROC,glDeleteRenderbuffersEXT) #endif #if !defined(GL_VERSION_1_3) || defined(_MSC_VER) || defined(__INTEL_COMPILER) @@ -969,6 +974,12 @@ static char OGLInit(void) #if !defined(GL_VERSION_1_3) || defined(_MSC_VER) || defined(__INTEL_COMPILER) INITOGLEXT(PFNGLACTIVETEXTUREPROC,glActiveTexture) #endif + + //new stuff + INITOGLEXT(PFNGLGENRENDERBUFFERSEXTPROC,glGenRenderbuffersEXT) + INITOGLEXT(PFNGLBINDRENDERBUFFEREXTPROC,glBindRenderbufferEXT) + INITOGLEXT(PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC,glRenderbufferStorageMultisampleEXT) + INITOGLEXT(PFNGLDELETERENDERBUFFERSEXTPROC,glDeleteRenderbuffersEXT) // VBO Setup #if !defined(GL_ARB_vertex_buffer_object)