Fix buffer creation in light_internal_create()

(cherry picked from commit 350573a4df)
This commit is contained in:
Bartłomiej T. Listwon 2021-08-30 09:17:32 +02:00 committed by Rémi Verschelde
parent 1722d0cc12
commit ba6d8153af
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -95,7 +95,7 @@ RID RasterizerCanvasBaseGLES3::light_internal_create() {
glGenBuffers(1, &li->ubo);
glBindBuffer(GL_UNIFORM_BUFFER, li->ubo);
glBufferData(GL_UNIFORM_BUFFER, sizeof(LightInternal::UBOData), &state.canvas_item_ubo_data, GL_DYNAMIC_DRAW);
glBufferData(GL_UNIFORM_BUFFER, sizeof(LightInternal::UBOData), nullptr, GL_DYNAMIC_DRAW);
glBindBuffer(GL_UNIFORM_BUFFER, 0);
return light_internal_owner.make_rid(li);