diff --git a/include/cglm-cam.h b/include/cglm-cam.h index ea2dca6..7872adf 100644 --- a/include/cglm-cam.h +++ b/include/cglm-cam.h @@ -65,7 +65,7 @@ glm_ortho(float left, CGLM_INLINE void glm_ortho_default(mat4 dest) { - GLint rect[4]; + int32_t rect[4]; float aspectRatio; glm_platfom_get_viewport_rect(rect); @@ -93,7 +93,7 @@ glm_ortho_default(mat4 dest) { CGLM_INLINE void glm_ortho_default_s(float size, mat4 dest) { - GLint rect[4]; + int32_t rect[4]; float aspectRatio; glm_platfom_get_viewport_rect(rect); @@ -142,7 +142,7 @@ glm_perspective(float fovy, CGLM_INLINE void glm_perspective_default(mat4 dest) { - GLint rect[4]; + int32_t rect[4]; glm_platfom_get_viewport_rect(rect); glm_perspective((float)M_PI_4, diff --git a/include/cglm-opengl.h b/include/cglm-opengl.h index 86b5ff1..605c2d0 100644 --- a/include/cglm-opengl.h +++ b/include/cglm-opengl.h @@ -13,7 +13,7 @@ CGLM_INLINE void -glm_mat4_uniform(mat4 m, GLint location){ +glm_mat4_uniform(mat4 m, int32_t location){ glm_platform_uniform_mat4fv(location, m[0]); }