vrend: Also add TEXTURE_RECTANGLE to the targets translated on GLES

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>

Reviewed-By: Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gert Wollny 6 years ago
parent 905e04dce3
commit 5eeb767d09
  1. 3
      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;
}

Loading…
Cancel
Save