Change texture interpolation

This commit is contained in:
2025-09-25 10:02:14 +02:00
parent 31adf3d7af
commit ce0bcfa7a4
+3
View File
@@ -100,6 +100,9 @@ GfxContext_cache_World (GfxContext *self, World *world)
SDL_TEXTUREACCESS_TARGET,
world->width, world->height);
/* Make it pixely. */
SDL_SetTextureScaleMode (self->world_texture, SDL_SCALEMODE_NEAREST);
if (!self->world_texture)
{
g_error ("Failed to create world texture: %s", SDL_GetError ());