summaryrefslogtreecommitdiffstats
path: root/src/extras/screendroplets.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-08-17 12:59:13 +0200
committeraap <aap@papnet.eu>2021-08-17 12:59:30 +0200
commit6b4b11d80e3b89b179a77d79ae77d0f1ad901b7c (patch)
treee275f8bb1564267c845ff0e454d047357dabc392 /src/extras/screendroplets.cpp
parentAdd AUDIO_REFLECTIONS define, fix a bunch of types, fix heli chatter intensity (diff)
downloadre3-6b4b11d80e3b89b179a77d79ae77d0f1ad901b7c.tar
re3-6b4b11d80e3b89b179a77d79ae77d0f1ad901b7c.tar.gz
re3-6b4b11d80e3b89b179a77d79ae77d0f1ad901b7c.tar.bz2
re3-6b4b11d80e3b89b179a77d79ae77d0f1ad901b7c.tar.lz
re3-6b4b11d80e3b89b179a77d79ae77d0f1ad901b7c.tar.xz
re3-6b4b11d80e3b89b179a77d79ae77d0f1ad901b7c.tar.zst
re3-6b4b11d80e3b89b179a77d79ae77d0f1ad901b7c.zip
Diffstat (limited to '')
-rw-r--r--src/extras/screendroplets.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extras/screendroplets.cpp b/src/extras/screendroplets.cpp
index 2485386b..cc86808f 100644
--- a/src/extras/screendroplets.cpp
+++ b/src/extras/screendroplets.cpp
@@ -741,7 +741,7 @@ uint32 im2D_UV2_Vao;
void
openim2d_uv2(void)
{
- u_xform = rw::gl3::registerUniform("u_xform"); // this doesn't add a new one, so it's safe
+ u_xform = rw::gl3::registerUniform("u_xform", rw::gl3::UNIFORM_VEC4); // this doesn't add a new one, so it's safe
glGenBuffers(1, &im2D_UV2_Ibo);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, im2D_UV2_Ibo);
@@ -803,7 +803,7 @@ RenderIndexedPrimitive_UV2(RwPrimitiveType primType, Im2DVertexUV2 *vertices, Rw
setAttribPointers(im2d_UV2_attribDesc, 4);
#endif
- glUniform4fv(currentShader->uniformLocations[u_xform], 1, xform);
+ setUniform(u_xform, xform);
flushCache();
glDrawElements(primTypeMap[primType], numIndices,