Fix runtime warning about "GL_MAX_UNIFORM_BUFFER_BINDINGS" 37/81237/5
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Sun, 24 Jul 2016 14:13:35 +0000 (22:13 +0800)
committerGwan-gyeong Mun <kk.moon@samsung.com>
Thu, 4 Aug 2016 09:46:28 +0000 (02:46 -0700)
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 <zhaowei.yuan@samsung.com>
Change-Id: I8e25dbd7f166933a1718ebbaf8d923c383b5e508

src/modules/fastpath/coregl_fastpath.h

index ccc4401..2d5042b 100644 (file)
@@ -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,