|
|
@@ -278,7 +278,19 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|
|
int Size = AttribElements[Attrib.Size];
|
|
|
int Offset = Attrib.Offset;
|
|
|
|
|
|
- GL.VertexAttribPointer(Attrib.Index, Size, Type, Normalize, Stride, Offset);
|
|
|
+ if (Attrib.Type == GalVertexAttribType.Sint ||
|
|
|
+ Attrib.Type == GalVertexAttribType.Uint)
|
|
|
+ {
|
|
|
+ IntPtr Pointer = new IntPtr(Offset);
|
|
|
+
|
|
|
+ VertexAttribIntegerType IType = (VertexAttribIntegerType)Type;
|
|
|
+
|
|
|
+ GL.VertexAttribIPointer(Attrib.Index, Size, IType, Stride, Pointer);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ GL.VertexAttribPointer(Attrib.Index, Size, Type, Normalize, Stride, Offset);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|