From 5eeb767d09c06014c59ab12c5b3fb17c0ed4e957 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 6 Mar 2019 13:22:30 +0100 Subject: [PATCH] vrend: Also add TEXTURE_RECTANGLE to the targets translated on GLES Signed-off-by: Gert Wollny Reviewed-By: Reviewed-by: Gurchetan Singh --- src/vrend_renderer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 3f0bfa2..4031237 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -7307,7 +7307,8 @@ static inline GLenum translate_gles_emulation_texture_target(GLenum target) { switch (target) { - case GL_TEXTURE_1D: return GL_TEXTURE_2D; + case GL_TEXTURE_1D: + case GL_TEXTURE_RECTANGLE: return GL_TEXTURE_2D; case GL_TEXTURE_1D_ARRAY: return GL_TEXTURE_2D_ARRAY; default: return target; }