From 62afbc4743f7a5a8a85bd914193a2fbfd897af97 Mon Sep 17 00:00:00 2001 From: Mikola Lysenko Date: Sat, 5 Sep 2015 12:35:21 -0500 Subject: [PATCH] on some broken driver getUnifromfv can overflow --- src/webgl.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/webgl.cc b/src/webgl.cc index 9e3fe62b..2afff86b 100644 --- a/src/webgl.cc +++ b/src/webgl.cc @@ -1930,8 +1930,7 @@ GL_METHOD(GetUniform) { GLuint program = args[0]->Int32Value(); GLint location = args[1]->Int32Value(); - float data[16]; // worst case scenario is 16 floats - + float data[1024]; glGetUniformfv(program, location, data); v8::Local arr=NanNew(16);