[gtk/wip/otte/gles: 1/5] ngl: Use the right value




commit e371bd09c17c046475d525cd0b002537b3f9f2e4
Author: Benjamin Otte <otte redhat com>
Date:   Fri Oct 8 18:47:49 2021 +0200

    ngl: Use the right value
    
    It's GL_RGBA, not GL_BGRA, or GLES will complain.

 gsk/ngl/gsknglcommandqueue.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/ngl/gsknglcommandqueue.c b/gsk/ngl/gsknglcommandqueue.c
index f7db75016d..a5d2a2245e 100644
--- a/gsk/ngl/gsknglcommandqueue.c
+++ b/gsk/ngl/gsknglcommandqueue.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]