diff options
| author | raysan5 <raysan5@gmail.com> | 2016-12-25 02:01:13 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-12-25 02:01:13 +0100 |
| commit | 852f3d4fd0eec8fcebcf39dfc19b2ccc5b008ba3 (patch) | |
| tree | 22ef03c6f32341a6847fe3a31afd7d11a1031a84 /src/rlgl.c | |
| parent | 6d6c542a1dabfddc988c20de669c8a5e4d9b04a0 (diff) | |
| download | raylib-852f3d4fd0eec8fcebcf39dfc19b2ccc5b008ba3.tar.gz raylib-852f3d4fd0eec8fcebcf39dfc19b2ccc5b008ba3.zip | |
Review comments and formatting
Diffstat (limited to 'src/rlgl.c')
| -rw-r--r-- | src/rlgl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1690,7 +1690,7 @@ RenderTexture2D rlglLoadRenderTexture(int width, int height) } // Update already loaded texture in GPU with new data -void rlglUpdateTexture(unsigned int id, int width, int height, int format, void *data) +void rlglUpdateTexture(unsigned int id, int width, int height, int format, const void *data) { glBindTexture(GL_TEXTURE_2D, id); @@ -2423,7 +2423,7 @@ Texture2D GetDefaultTexture(void) return texture; } -// Load a custom shader and bind default locations +// Load shader from files and bind default locations Shader LoadShader(char *vsFileName, char *fsFileName) { Shader shader = { 0 }; @@ -2455,7 +2455,7 @@ Shader LoadShader(char *vsFileName, char *fsFileName) return shader; } -// Unload a custom shader from memory +// Unload shader from GPU memory (VRAM) void UnloadShader(Shader shader) { if (shader.id != 0) |
