SDL_ScaleMode: fix compilation GLES renderer
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