Fixed texture blend type on linux.
This commit is contained in:
parent
825c768fab
commit
9e151e2f3f
|
|
@ -54,6 +54,13 @@ texture_t *load_texture(void)
|
|||
}
|
||||
|
||||
SDL_DestroySurface(tmp_surface);
|
||||
|
||||
if(!SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST))
|
||||
{
|
||||
error_printf("Failed to set texture scale mode.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return texture;
|
||||
|
||||
failure:
|
||||
|
|
|
|||
Loading…
Reference in New Issue