Browse Source

Fix #3876 and also `rlgl` review on #3783

Ray 1 year ago
parent
commit
d7ff0175c1
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/rlgl.h

+ 5 - 1
src/rlgl.h

@@ -903,10 +903,14 @@ RLAPI void rlLoadDrawQuad(void);     // Load and draw a quad
     #define GL_TEXTURE_MAX_ANISOTROPY_EXT       0x84FE
     #define GL_TEXTURE_MAX_ANISOTROPY_EXT       0x84FE
 #endif
 #endif
 
 
-#if !defined(GL_PROGRAM_POINT_SIZE)
+#ifndef GL_PROGRAM_POINT_SIZE
     #define GL_PROGRAM_POINT_SIZE               0x8642
     #define GL_PROGRAM_POINT_SIZE               0x8642
 #endif
 #endif
 
 
+#ifndef GL_LINE_WIDTH
+    #define GL_LINE_WIDTH                       0x0B21
+#endif
+
 #if defined(GRAPHICS_API_OPENGL_11)
 #if defined(GRAPHICS_API_OPENGL_11)
     #define GL_UNSIGNED_SHORT_5_6_5             0x8363
     #define GL_UNSIGNED_SHORT_5_6_5             0x8363
     #define GL_UNSIGNED_SHORT_5_5_5_1           0x8034
     #define GL_UNSIGNED_SHORT_5_5_5_1           0x8034