diff options
| author | Ray <[email protected]> | 2019-06-19 15:43:35 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-06-19 15:43:35 +0200 |
| commit | 1b249ac1e15b59867c6f9af3ff628cffba0840ee (patch) | |
| tree | 4e86c89898ea2548e674204332501013322ecc19 /src/rlgl.h | |
| parent | e0854696b4685737f21b0b2b973104c76c5bb8ef (diff) | |
| download | raylib-1b249ac1e15b59867c6f9af3ff628cffba0840ee.tar.gz raylib-1b249ac1e15b59867c6f9af3ff628cffba0840ee.zip | |
Define some globals
Diffstat (limited to 'src/rlgl.h')
| -rw-r--r-- | src/rlgl.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -782,14 +782,14 @@ static DrawCall *draws = NULL; static int drawsCounter = 0; // Default texture (1px white) useful for plain color polys (required by shader) -static unsigned int defaultTextureId; +static unsigned int defaultTextureId = 0; // Default shaders -static unsigned int defaultVShaderId; // Default vertex shader id (used by default shader program) -static unsigned int defaultFShaderId; // Default fragment shader Id (used by default shader program) +static unsigned int defaultVShaderId = 0; // Default vertex shader id (used by default shader program) +static unsigned int defaultFShaderId = 0; // Default fragment shader Id (used by default shader program) -static Shader defaultShader; // Basic shader, support vertex color and diffuse texture -static Shader currentShader; // Shader to be used on rendering (by default, defaultShader) +static Shader defaultShader = { 0 }; // Basic shader, support vertex color and diffuse texture +static Shader currentShader = { 0 }; // Shader to be used on rendering (by default, defaultShader) // Extension supported flag: VAO static bool vaoSupported = false; // VAO support (OpenGL ES2 could not support VAO extension) @@ -827,7 +827,7 @@ static PFNGLDELETEVERTEXARRAYSOESPROC glDeleteVertexArrays; #if defined(SUPPORT_VR_SIMULATOR) // VR global variables static VrStereoConfig vrConfig = { 0 }; // VR stereo configuration for simulator -static RenderTexture2D stereoFbo; // VR stereo rendering framebuffer +static RenderTexture2D stereoFbo = { 0 }; // VR stereo rendering framebuffer static bool vrSimulatorReady = false; // VR simulator ready flag static bool vrStereoRender = false; // VR stereo rendering enabled/disabled flag // NOTE: This flag is useful to render data over stereo image (i.e. FPS) @@ -835,11 +835,11 @@ static bool vrStereoRender = false; // VR stereo rendering enabled/disab #endif // GRAPHICS_API_OPENGL_33 || GRAPHICS_API_OPENGL_ES2 -static int blendMode = 0; // Track current blending mode +static int blendMode = 0; // Track current blending mode // Default framebuffer size -static int screenWidth; // Default framebuffer width -static int screenHeight; // Default framebuffer height +static int screenWidth = 0; // Default framebuffer width +static int screenHeight= 0; // Default framebuffer height //---------------------------------------------------------------------------------- // Module specific Functions Declaration |
