From: Brendan Hansen Date: Fri, 28 Jan 2022 16:55:11 +0000 (-0600) Subject: Fixed bug with sourcing from multiple gl shaders X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=811a54e260512f4da4638e3074c98140b151be0e;p=onyx.git Fixed bug with sourcing from multiple gl shaders --- diff --git a/modules/opengles/onyx_opengles.c b/modules/opengles/onyx_opengles.c index ba757fcc..c03b479c 100644 --- a/modules/opengles/onyx_opengles.c +++ b/modules/opengles/onyx_opengles.c @@ -527,10 +527,10 @@ ONYX_GL_INT_4_PTR(glGetInternalformativ, GLint) ONYX_DEF(glShaderSource, (INT, INT, PTR, PTR), ()) { GLsizei count = params->data[1].of.i32; - int base_ptr = *(int *) ONYX_PTR(params->data[2].of.i32); + int* base_ptr = (int *) ONYX_PTR(params->data[2].of.i32); char** strs = alloca(count * sizeof(char *)); for (int i=0; idata[0].of.i32, count, strs, (GLint *) ONYX_PTR(params->data[3].of.i32)); @@ -539,10 +539,10 @@ ONYX_DEF(glShaderSource, (INT, INT, PTR, PTR), ()) { ONYX_DEF(glGetUniformIndices, (INT, INT, PTR, PTR), ()) { GLsizei count = params->data[1].of.i32; - int base_ptr = *(int *) ONYX_PTR(params->data[2].of.i32); + int* base_ptr = (int *) ONYX_PTR(params->data[2].of.i32); char** strs = alloca(count * sizeof(char *)); for (int i=0; idata[0].of.i32, count, (const char *const*) strs, (int *) ONYX_PTR(params->data[3].of.i32)); diff --git a/modules/opengles/onyx_opengles.so b/modules/opengles/onyx_opengles.so index cc89c8ce..2b34641b 100755 Binary files a/modules/opengles/onyx_opengles.so and b/modules/opengles/onyx_opengles.so differ