From 6ae85b17eda73e9a70662ecb7674bac2adb1bc2e Mon Sep 17 00:00:00 2001 From: Zhaowei Yuan Date: Sun, 24 Jul 2016 22:13:35 +0800 Subject: [PATCH] Fix runtime warning about "GL_MAX_UNIFORM_BUFFER_BINDINGS" Vaule of initial_ctx->gl_num_uniform_buffer_bindings[0] is get by calling glGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS..) Various GPU Vendor GLES/EGLDirvers can return the result from 36 to 72. Signed-off-by: Zhaowei Yuan Change-Id: I8e25dbd7f166933a1718ebbaf8d923c383b5e508 --- src/modules/fastpath/coregl_fastpath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fastpath/coregl_fastpath.h b/src/modules/fastpath/coregl_fastpath.h index ccc4401..2d5042b 100644 --- a/src/modules/fastpath/coregl_fastpath.h +++ b/src/modules/fastpath/coregl_fastpath.h @@ -53,7 +53,7 @@ #define MAX_TEXTURE_UNITS 96 #define MAX_VERTEX_ATTRIBS 64 #define MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 64 -#define MAX_UNIFORM_BUFFER_BINDINGS 64 +#define MAX_UNIFORM_BUFFER_BINDINGS 72 typedef enum _Fastpath_Opt_Flag { FP_UNKNOWN_PATH, -- 2.7.4