diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-05-25 20:34:09 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-05-29 22:59:29 +0200 |
commit | b1503b202043a577720e28969b74cca6f9c954f8 (patch) | |
tree | 7da9cdd46c0cde990c30c11570882efdca9396c6 /src/video_core/renderer_opengl/generated | |
parent | Merge pull request #817 from linkmauve/citra.ico (diff) | |
download | yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.gz yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.bz2 yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.lz yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.xz yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.zst yuzu-b1503b202043a577720e28969b74cca6f9c954f8.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/generated')
-rw-r--r-- | src/video_core/renderer_opengl/generated/gl_3_2_core.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/generated/gl_3_2_core.c b/src/video_core/renderer_opengl/generated/gl_3_2_core.c index ef29972d7..95fd29c0a 100644 --- a/src/video_core/renderer_opengl/generated/gl_3_2_core.c +++ b/src/video_core/renderer_opengl/generated/gl_3_2_core.c @@ -62,9 +62,9 @@ static int TestPointer(const PROC pTest) ptrdiff_t iTest; if(!pTest) return 0; iTest = (ptrdiff_t)pTest; - + if(iTest == 1 || iTest == 2 || iTest == 3 || iTest == -1) return 0; - + return 1; } @@ -79,7 +79,7 @@ static PROC WinGetProcAddress(const char *name) glMod = GetModuleHandleA("OpenGL32.dll"); return (PROC)GetProcAddress(glMod, (LPCSTR)name); } - + #define IntGetProcAddress(name) WinGetProcAddress(name) #else #if defined(__APPLE__) @@ -1083,7 +1083,7 @@ static ogl_StrToExtMap *FindExtEntry(const char *extensionName) if(strcmp(extensionName, currLoc->extensionName) == 0) return currLoc; } - + return NULL; } @@ -1135,15 +1135,15 @@ int ogl_LoadFunctions() { int numFailed = 0; ClearExtensionVars(); - + _ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum, GLint *))IntGetProcAddress("glGetIntegerv"); if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED; _ptrc_glGetStringi = (const GLubyte * (CODEGEN_FUNCPTR *)(GLenum, GLuint))IntGetProcAddress("glGetStringi"); if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED; - + ProcExtsFromExtList(); numFailed = Load_Version_3_2(); - + if(numFailed == 0) return ogl_LOAD_SUCCEEDED; else @@ -1177,7 +1177,7 @@ int ogl_IsVersionGEQ(int majorVersion, int minorVersion) { if(g_major_version == 0) GetGLVersion(); - + if(majorVersion > g_major_version) return 1; if(majorVersion < g_major_version) return 0; if(minorVersion >= g_minor_version) return 1; |