aboutsummaryrefslogtreecommitdiff
path: root/sources/TZR_Init.c
diff options
context:
space:
mode:
Diffstat (limited to 'sources/TZR_Init.c')
-rw-r--r--sources/TZR_Init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/TZR_Init.c b/sources/TZR_Init.c
index 1fd23ee..5af39f4 100644
--- a/sources/TZR_Init.c
+++ b/sources/TZR_Init.c
@@ -75,6 +75,14 @@ _TZR_Init(const TZR_Config *config)
___tzr_config.height);
if (___tzr_target == NULL)
return _sdl_error();
+ if (___tzr_config.interlace) {
+ ___tzr_target_pre = SDL_CreateTexture(
+ ___tzr_renderer,
+ SDL_PIXELFORMAT_RGB888,
+ SDL_TEXTUREACCESS_TARGET,
+ ___tzr_config.width,
+ ___tzr_config.height);
+ }
}
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY,