|
@@ -2761,7 +2761,7 @@ SDL_Window *SDL_GetWindowFromID(SDL_WindowID id)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- SDL_SetError("Invalid window ID"); \
|
|
|
|
|
|
+ SDL_SetError("Invalid window ID");
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -5032,8 +5032,7 @@ bool SDL_GL_GetAttribute(SDL_GLAttr attr, int *value)
|
|
}
|
|
}
|
|
if (fbo_type != GL_NONE) {
|
|
if (fbo_type != GL_NONE) {
|
|
glGetFramebufferAttachmentParameterivFunc(GL_FRAMEBUFFER, attachment, attachmentattrib, (GLint *)value);
|
|
glGetFramebufferAttachmentParameterivFunc(GL_FRAMEBUFFER, attachment, attachmentattrib, (GLint *)value);
|
|
- }
|
|
|
|
- else {
|
|
|
|
|
|
+ } else {
|
|
*value = 0;
|
|
*value = 0;
|
|
}
|
|
}
|
|
if (glBindFramebufferFunc && (current_fbo != 0)) {
|
|
if (glBindFramebufferFunc && (current_fbo != 0)) {
|
|
@@ -5264,7 +5263,7 @@ bool SDL_GL_SwapWindow(SDL_Window *window)
|
|
bool SDL_GL_DestroyContext(SDL_GLContext context)
|
|
bool SDL_GL_DestroyContext(SDL_GLContext context)
|
|
{
|
|
{
|
|
if (!_this) {
|
|
if (!_this) {
|
|
- return SDL_UninitializedVideo(); \
|
|
|
|
|
|
+ return SDL_UninitializedVideo();
|
|
}
|
|
}
|
|
if (!context) {
|
|
if (!context) {
|
|
return SDL_InvalidParamError("context");
|
|
return SDL_InvalidParamError("context");
|