Skip to content

Commit

Permalink
on some broken driver getUnifromfv can overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolalysenko committed Sep 5, 2015
1 parent 2638938 commit 62afbc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/webgl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<v8::Array> arr=NanNew<v8::Array>(16);
Expand Down

0 comments on commit 62afbc4

Please sign in to comment.