瀏覽代碼

Corrected compilation bug on OpenGL 1.1

pull/124/head
Ray 9 年之前
父節點
當前提交
72eb2632cc
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/rlgl.c

+ 4
- 0
src/rlgl.c 查看文件

@ -2253,13 +2253,17 @@ void SetShaderValueMatrix(Shader shader, int uniformLoc, Matrix mat)
// Set a custom projection matrix (replaces internal projection matrix) // Set a custom projection matrix (replaces internal projection matrix)
void SetMatrixProjection(Matrix proj) void SetMatrixProjection(Matrix proj)
{ {
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
projection = proj; projection = proj;
#endif
} }
// Set a custom modelview matrix (replaces internal modelview matrix) // Set a custom modelview matrix (replaces internal modelview matrix)
void SetMatrixModelview(Matrix view) void SetMatrixModelview(Matrix view)
{ {
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
modelview = view; modelview = view;
#endif
} }
// Begin blending mode (alpha, additive, multiplied) // Begin blending mode (alpha, additive, multiplied)

Loading…
取消
儲存