From 07bfb24312ce9092552e893c324f44bc53793fc8 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Mon, 4 Dec 2023 17:14:49 +0100 Subject: [PATCH] cogl/gles2: Only support rgba1010102 on little endian systems We already check for this in various places but we still advertised this feature when it's not actually supported. Part-of: --- cogl/cogl/driver/gl/gles/cogl-driver-gles.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c index bf80cb7a1..98e74c497 100644 --- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c +++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c @@ -523,9 +523,11 @@ _cogl_driver_update_features (CoglContext *context, COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_TEXTURE_FORMAT_BGRA8888, TRUE); +#if G_BYTE_ORDER == G_LITTLE_ENDIAN if (COGL_CHECK_GL_VERSION (gl_major, gl_minor, 3, 0)) COGL_FLAGS_SET (context->features, COGL_FEATURE_ID_TEXTURE_RGBA1010102, TRUE); +#endif if (COGL_CHECK_GL_VERSION (gl_major, gl_minor, 3, 2) || (_cogl_check_extension ("GL_OES_texture_half_float", gl_extensions) &&