|
|
@ -4143,7 +4143,7 @@ unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHi |
|
|
|
glGenBuffers(1, &ssbo); |
|
|
|
glBindBuffer(GL_SHADER_STORAGE_BUFFER, ssbo); |
|
|
|
glBufferData(GL_SHADER_STORAGE_BUFFER, size, data, usageHint? usageHint : RL_STREAM_COPY); |
|
|
|
glClearBufferData(GL_SHADER_STORAGE_BUFFER, GL_R8UI, GL_RED_INTEGER, GL_UNSIGNED_BYTE, mi">0); |
|
|
|
k">if (data == NULL) glClearBufferData(GL_SHADER_STORAGE_BUFFER, GL_R8UI, GL_RED_INTEGER, GL_UNSIGNED_BYTE, nb">NULL); // Clear buffer data to 0 |
|
|
|
glBindBuffer(GL_SHADER_STORAGE_BUFFER, 0); |
|
|
|
#endif |
|
|
|
|
|
|
|