src/video/SDL_renderer_gl.c
changeset 3013 8cc00819c8d6
parent 3011 8f4ed5ec2b06
child 3041 20d65430e63c
equal deleted inserted replaced
3012:7e30c2dc7783 3013:8cc00819c8d6
   924         renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0);
   924         renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0);
   925     }
   925     }
   926     renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
   926     renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
   927     renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH,
   927     renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH,
   928                               (pitch / bytes_per_pixel(texture->format)) /
   928                               (pitch / bytes_per_pixel(texture->format)) /
   929                               ((GL_TextureData *) texture->
   929                               ((GL_TextureData *) texture->driverdata)->
   930                                driverdata)->HACK_RYAN_FIXME);
   930                               HACK_RYAN_FIXME);
   931 }
   931 }
   932 
   932 
   933 static int
   933 static int
   934 GL_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
   934 GL_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
   935 {
   935 {