mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-11 09:48:15 +08:00
fix opengl; update librw
This commit is contained in:
1 parent
e73e965d5b
commit
dc4ee41b70
2 files changed
+3
-3
No files matched your search
@@ -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,
|
||||
|
||||
Vendored
+1
-1
Submodule vendor/librw updated: a5bc972322...4c4b199057.
Reference in new issue
Block a user