Projects
Games
openspades
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 5
View file
openspades.patch
Changed
@@ -26,3 +26,71 @@ } #endif +--- a/Sources/Gui/SDLGLDevice.cpp ++++ b/Sources/Gui/SDLGLDevice.cpp +@@ -1476,12 +1476,14 @@ namespace spades { + + IGLDevice::UInteger SDLGLDevice::CreateProgram() { + #if GLEW ++ IGLDevice::UInteger r = 0; + if (glCreateProgram) + return glCreateProgram(); + else if (glCreateProgramObjectARB) + return glCreateProgramObjectARB(); + else + ReportMissingFunc("glCreateProgram"); ++ return r; + #else + CheckExistence(glCreateProgram); + return glCreateProgram(); +@@ -1581,12 +1583,16 @@ namespace spades { + + IGLDevice::Integer SDLGLDevice::GetAttribLocation(UInteger program, const char *name) { + #if GLEW ++ IGLDevice::UInteger r = 0; ++ + if (glGetAttribLocation) + return glGetAttribLocation(program, name); + else if (glGetAttribLocationARB) + return glGetAttribLocationARB(program, name); + else + ReportMissingFunc("glGetAttribLocation"); ++ ++ return r; + #else + CheckExistence(glGetAttribLocation); + return glGetAttribLocation(program, name); +@@ -1610,12 +1616,16 @@ namespace spades { + + IGLDevice::Integer SDLGLDevice::GetUniformLocation(UInteger program, const char *name) { + #if GLEW ++ IGLDevice::UInteger r = 0; ++ + if (glGetUniformLocation) + return glGetUniformLocation(program, name); + else if (glGetUniformLocationARB) + return glGetUniformLocationARB(program, name); + else + ReportMissingFunc("glGetUniformLocation"); ++ ++ return r; + #else + CheckExistence(glGetUniformLocation); + return glGetUniformLocation(program, name); +@@ -1751,6 +1761,8 @@ namespace spades { + } + + GLenum SDLGLDevice::parseFramebufferTarget(Enum v) { ++ GLenum r = 0; ++ + SPADES_MARK_FUNCTION_DEBUG(); + switch (v) { + case draw::IGLDevice::Framebuffer: return GL_FRAMEBUFFER; +@@ -1758,6 +1770,7 @@ namespace spades { + case draw::IGLDevice::DrawFramebuffer: return GL_DRAW_FRAMEBUFFER; + default: SPInvalidEnum("v", v); + } ++ return r; + } + + IGLDevice::UInteger SDLGLDevice::GenFramebuffer() {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.