Skip to content

Commit 2fd6d7e

Browse files
authored
Use const for pointer float array (#2807)
* Use const for pointer float array * missed a definition
1 parent 2c77b31 commit 2fd6d7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rlgl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ RLAPI void rlLoadIdentity(void); // Reset current matrix to
519519
RLAPI void rlTranslatef(float x, float y, float z); // Multiply the current matrix by a translation matrix
520520
RLAPI void rlRotatef(float angle, float x, float y, float z); // Multiply the current matrix by a rotation matrix
521521
RLAPI void rlScalef(float x, float y, float z); // Multiply the current matrix by a scaling matrix
522-
RLAPI void rlMultMatrixf(float *matf); // Multiply the current matrix by another matrix
522+
RLAPI void rlMultMatrixf(const float *matf); // Multiply the current matrix by another matrix
523523
RLAPI void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar);
524524
RLAPI void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar);
525525
RLAPI void rlViewport(int x, int y, int width, int height); // Set the viewport area
@@ -1048,7 +1048,7 @@ void rlLoadIdentity(void) { glLoadIdentity(); }
10481048
void rlTranslatef(float x, float y, float z) { glTranslatef(x, y, z); }
10491049
void rlRotatef(float angle, float x, float y, float z) { glRotatef(angle, x, y, z); }
10501050
void rlScalef(float x, float y, float z) { glScalef(x, y, z); }
1051-
void rlMultMatrixf(float *matf) { glMultMatrixf(matf); }
1051+
void rlMultMatrixf(const float *matf) { glMultMatrixf(matf); }
10521052
#endif
10531053
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
10541054
// Choose the current matrix to be transformed
@@ -1173,7 +1173,7 @@ void rlScalef(float x, float y, float z)
11731173
}
11741174

11751175
// Multiply the current matrix by another matrix
1176-
void rlMultMatrixf(float *matf)
1176+
void rlMultMatrixf(const float *matf)
11771177
{
11781178
// Matrix creation from array
11791179
Matrix mat = { matf[0], matf[4], matf[8], matf[12],

0 commit comments

Comments
 (0)