From a14ff27337a6bacec171b6b6e8e3f15bf45cf1b5 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 4 May 2016 12:44:50 -0300 Subject: [PATCH] fix to avoid video texture scaling --- drivers/gles2/rasterizer_gles2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index 2d1bda0050b..508a6a66970 100644 --- a/drivers/gles2/rasterizer_gles2.cpp +++ b/drivers/gles2/rasterizer_gles2.cpp @@ -921,7 +921,7 @@ void RasterizerGLES2::texture_allocate(RID p_texture,int p_width, int p_height,I texture->alloc_height = texture->height; }; - if (shrink_textures_x2) { + if (!(p_flags&VS::TEXTURE_FLAG_VIDEO_SURFACE) && shrink_textures_x2) { texture->alloc_height = MAX(1,texture->alloc_height/2); texture->alloc_width = MAX(1,texture->alloc_width/2); }