mirror of https://github.com/encounter/SDL.git
SDL_ScaleMode: fix compilation GLES renderer
This commit is contained in:
parent
131e13a773
commit
6d639fce2d
|
@ -496,7 +496,6 @@ static void
|
||||||
GLES_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode)
|
GLES_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode)
|
||||||
{
|
{
|
||||||
GLES_RenderData *renderdata = (GLES_RenderData *) renderer->driverdata;
|
GLES_RenderData *renderdata = (GLES_RenderData *) renderer->driverdata;
|
||||||
const GLenum textype = renderdata->textype;
|
|
||||||
GLES_TextureData *data = (GLES_TextureData *) texture->driverdata;
|
GLES_TextureData *data = (GLES_TextureData *) texture->driverdata;
|
||||||
GLenum glScaleMode = (scaleMode == SDL_ScaleModeNearest) ? GL_NEAREST : GL_LINEAR;
|
GLenum glScaleMode = (scaleMode == SDL_ScaleModeNearest) ? GL_NEAREST : GL_LINEAR;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue