diff options
| author | Ray <raysan5@gmail.com> | 2014-12-31 19:28:38 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2014-12-31 19:28:38 +0100 |
| commit | 3c4a91658e8586ecb5504d3167796d043e79d065 (patch) | |
| tree | 89aeddb683c133c6d94f1a03f9d1a1399d2a6bf4 /src/rlgl.h | |
| parent | 0c606092689d7a1823f7acd5e8b849052e297b7a (diff) | |
| parent | fad81f36e4cfd37901caad8555c49c41ac65aaee (diff) | |
| download | raylib-3c4a91658e8586ecb5504d3167796d043e79d065.tar.gz raylib-3c4a91658e8586ecb5504d3167796d043e79d065.zip | |
Merge pull request #12 from raysan5/develop
Integration from develop branch
Diffstat (limited to 'src/rlgl.h')
| -rw-r--r-- | src/rlgl.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -45,7 +45,7 @@ // Choose opengl version here or just define it at compile time: -DGRAPHICS_API_OPENGL_33 //#define GRAPHICS_API_OPENGL_11 // Only available on PLATFORM_DESKTOP //#define GRAPHICS_API_OPENGL_33 // Only available on PLATFORM_DESKTOP -//#define GRAPHICS_API_OPENGL_ES2 // Only available on PLATFORM_ANDROID or PLATFORM_RPI +//#define GRAPHICS_API_OPENGL_ES2 // Only available on PLATFORM_ANDROID or PLATFORM_RPI or PLATFORM_WEB // Security check in case no GRAPHICS_API_OPENGL_* defined #if !defined(GRAPHICS_API_OPENGL_11) && !defined(GRAPHICS_API_OPENGL_33) && !defined(GRAPHICS_API_OPENGL_ES2) @@ -72,8 +72,9 @@ #define MAX_TRIANGLES_BATCH 4096 #define MAX_QUADS_BATCH 4096 #elif defined(GRAPHICS_API_OPENGL_ES2) - // NOTE: Reduce memory sizes for embedded systems (RPI) - #define MAX_LINES_BATCH 2048 // Critical for wire shapes (sphere) + // NOTE: Reduce memory sizes for embedded systems (RPI and HTML5) + // NOTE: On HTML5 (emscripten) this is allocated on heap, by default it's only 16MB!...just take care... + #define MAX_LINES_BATCH 1024 // Critical for wire shapes (sphere) #define MAX_TRIANGLES_BATCH 2048 // Critical for some shapes (sphere) #define MAX_QUADS_BATCH 1024 // Be careful with text, every letter maps a quad #endif |
