summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorRay <[email protected]>2016-11-22 12:14:55 +0100
committerRay <[email protected]>2016-11-22 12:14:55 +0100
commitf1bcfc1352f73b9da98601f6b67cd15853b1cb8f (patch)
treef0a429afb3ad419177e947ee5873a67571a2e077 /src/rlgl.h
parentd1c9c34b2f374c010d3e2c4b54378b830fbc3f21 (diff)
downloadraylib-f1bcfc1352f73b9da98601f6b67cd15853b1cb8f.tar.gz
raylib-f1bcfc1352f73b9da98601f6b67cd15853b1cb8f.zip
Corrected bug on GenTextureMipmaps()
texture.mipmaps value needs to be updated, so, texture must be passed by reference instead of by value
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 7d328a52..bc12db0f 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -371,7 +371,7 @@ void rlglLoadExtensions(void *loader); // Load OpenGL extensions
unsigned int rlglLoadTexture(void *data, int width, int height, int textureFormat, int mipmapCount); // Load texture in GPU
RenderTexture2D rlglLoadRenderTexture(int width, int height); // Load a texture to be used for rendering (fbo with color and depth attachments)
void rlglUpdateTexture(unsigned int id, int width, int height, int format, void *data); // Update GPU texture with new data
-void rlglGenerateMipmaps(Texture2D texture); // Generate mipmap data for selected texture
+void rlglGenerateMipmaps(Texture2D *texture); // Generate mipmap data for selected texture
void rlglLoadMesh(Mesh *mesh, bool dynamic); // Upload vertex data into GPU and provided VAO/VBO ids
void rlglUpdateMesh(Mesh mesh, int buffer, int numVertex); // Update vertex data on GPU (upload new data to one buffer)