summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 530e44ef..bdf665a4 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3945,7 +3945,9 @@ void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool norma
// Additional types (depends on OpenGL version or extensions):
// - GL_HALF_FLOAT, GL_FLOAT, GL_DOUBLE, GL_FIXED,
// - GL_INT_2_10_10_10_REV, GL_UNSIGNED_INT_2_10_10_10_REV, GL_UNSIGNED_INT_10F_11F_11F_REV
- glVertexAttribPointer(index, compSize, type, normalized, stride, (void *)offset);
+
+ size_t offsetNative = offset;
+ glVertexAttribPointer(index, compSize, type, normalized, stride, (void *)offsetNative);
#endif
}