diff options
| author | Ray <[email protected]> | 2016-11-22 12:14:55 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2016-11-22 12:14:55 +0100 |
| commit | f1bcfc1352f73b9da98601f6b67cd15853b1cb8f (patch) | |
| tree | f0a429afb3ad419177e947ee5873a67571a2e077 /src/rlgl.h | |
| parent | d1c9c34b2f374c010d3e2c4b54378b830fbc3f21 (diff) | |
| download | raylib-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
