Skip to content

Commit 91c7bd2

Browse files
committed
Default nullptr uniformBlockIndexes
Fixes a crash
1 parent 9775d3b commit 91c7bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/gl_shader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ struct ShaderProgramDescriptor {
316316
uint32_t shaderCount = 0;
317317

318318
GLint* uniformLocations;
319-
GLuint* uniformBlockIndexes;
319+
GLuint* uniformBlockIndexes = nullptr;
320320
byte* uniformFirewall;
321321

322322
uint32_t checkSum;

0 commit comments

Comments
 (0)