src/video/SDL_video.c
changeset 11171 6f6e8880cd37
parent 11147 5b2841f73a33
child 11175 cbc6a8a5b701
equal deleted inserted replaced
11170:b5fe34e8401f 11171:6f6e8880cd37
  3111     void (APIENTRY *glGetFramebufferAttachmentParameterivFunc) (GLenum target, GLenum attachment, GLenum pname, GLint* params);
  3111     void (APIENTRY *glGetFramebufferAttachmentParameterivFunc) (GLenum target, GLenum attachment, GLenum pname, GLint* params);
  3112     GLenum attachment = GL_BACK_LEFT;
  3112     GLenum attachment = GL_BACK_LEFT;
  3113     GLenum attachmentattrib = 0;
  3113     GLenum attachmentattrib = 0;
  3114 #endif
  3114 #endif
  3115 
  3115 
       
  3116     if (!value) {
       
  3117         return SDL_InvalidParamError("value");
       
  3118     }
       
  3119 
  3116     /* Clear value in any case */
  3120     /* Clear value in any case */
  3117     *value = 0;
  3121     *value = 0;
       
  3122 
       
  3123     if (!_this) {
       
  3124         return SDL_UninitializedVideo();
       
  3125     }
  3118 
  3126 
  3119     switch (attr) {
  3127     switch (attr) {
  3120     case SDL_GL_RED_SIZE:
  3128     case SDL_GL_RED_SIZE:
  3121 #if SDL_VIDEO_OPENGL
  3129 #if SDL_VIDEO_OPENGL
  3122         attachmentattrib = GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE;
  3130         attachmentattrib = GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE;