aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-12-25 02:01:13 +0100
committerraysan5 <raysan5@gmail.com>2016-12-25 02:01:13 +0100
commit852f3d4fd0eec8fcebcf39dfc19b2ccc5b008ba3 (patch)
tree22ef03c6f32341a6847fe3a31afd7d11a1031a84 /src/rlgl.c
parent6d6c542a1dabfddc988c20de669c8a5e4d9b04a0 (diff)
downloadraylib-852f3d4fd0eec8fcebcf39dfc19b2ccc5b008ba3.tar.gz
raylib-852f3d4fd0eec8fcebcf39dfc19b2ccc5b008ba3.zip
Review comments and formatting
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index c694dcdc..ae28d9b6 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -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)