diff options
| author | Juan Linietsky | 2016-05-04 12:44:50 -0300 |
|---|---|---|
| committer | Ariel Manzur | 2016-05-05 18:44:20 -0300 |
| commit | a14ff27337a6bacec171b6b6e8e3f15bf45cf1b5 (patch) | |
| tree | 5272b041c02f1b176679d876d3a013ada54e41e5 /drivers | |
| parent | d6e30256ad7e2660db796b41cf8a7bf073aa6d09 (diff) | |
| download | godot-a14ff27337a6bacec171b6b6e8e3f15bf45cf1b5.tar.gz godot-a14ff27337a6bacec171b6b6e8e3f15bf45cf1b5.tar.zst godot-a14ff27337a6bacec171b6b6e8e3f15bf45cf1b5.zip | |
fix to avoid video texture scaling
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gles2/rasterizer_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index 2d1bda005..508a6a669 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); } |
