vrend: Fix typo in GLES glReadPixel warning

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Jakob Bornecrantz 7 years ago
parent 91ef824294
commit 75119ddd4b
  1. 2
      src/vrend_renderer.c

@ -5422,7 +5422,7 @@ static int vrend_transfer_send_readpixels(struct vrend_context *ctx,
drivers out there, or we mess up the format somewhere, we warn here. */
if (vrend_state.use_gles) {
GLint imp;
if (type != GL_UNSIGNED_BYTE && format != GL_UNSIGNED_INT &&
if (type != GL_UNSIGNED_BYTE && type != GL_UNSIGNED_INT &&
type != GL_INT && type != GL_FLOAT) {
glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_TYPE, &imp);
if (imp != type) {

Loading…
Cancel
Save