summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-05-04 12:44:50 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-05-04 12:44:50 -0300
commitfd6667a7dc24c41686110e9473774ef168ef9ea9 (patch)
treef2d2603a921d3e41394b4d2a9786dc9b2430dcb6 /drivers
parent89d87294dbc84df8dd7740cd04cc4842b8738e96 (diff)
fix to avoid video texture scaling
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles2/rasterizer_gles2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp
index 20d1ca956a..9236cc4b19 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);
}