ngl: Use the right value
authorBenjamin Otte <otte@redhat.com>
Fri, 8 Oct 2021 16:47:49 +0000 (18:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 9 Oct 2021 02:44:30 +0000 (04:44 +0200)
It's GL_RGBA, not GL_BGRA, or GLES will complain.

gsk/ngl/gsknglcommandqueue.c

index f7db75016d0293309ff8dea6028774711b07dfb9..a5d2a2245ea9e7ed2235174affeddda12cb3ff30 100644 (file)
@@ -1305,10 +1305,10 @@ gsk_ngl_command_queue_create_texture (GskNglCommandQueue *self,
       glTexImage2D (GL_TEXTURE_2D, 0, format, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
       break;
     case GL_RGBA16F:
-      glTexImage2D (GL_TEXTURE_2D, 0, format, width, height, 0, GL_BGRA, GL_HALF_FLOAT, NULL);
+      glTexImage2D (GL_TEXTURE_2D, 0, format, width, height, 0, GL_RGBA, GL_HALF_FLOAT, NULL);
       break;
     case GL_RGBA32F:
-      glTexImage2D (GL_TEXTURE_2D, 0, format, width, height, 0, GL_BGRA, GL_FLOAT, NULL);
+      glTexImage2D (GL_TEXTURE_2D, 0, format, width, height, 0, GL_RGBA, GL_FLOAT, NULL);
       break;
     default:
       /* If you add new formats, make sure to set the correct format and type here