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/raylib.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/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 6d67051e..d28b07a3 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -802,7 +802,7 @@ RLAPI void ImageColorInvert(Image *image); RLAPI void ImageColorGrayscale(Image *image); // Modify image color: grayscale RLAPI void ImageColorContrast(Image *image, float contrast); // Modify image color: contrast (-100 to 100) RLAPI void ImageColorBrightness(Image *image, int brightness); // Modify image color: brightness (-255 to 255) -RLAPI void GenTextureMipmaps(Texture2D texture); // Generate GPU mipmaps for a texture +RLAPI void GenTextureMipmaps(Texture2D *texture); // Generate GPU mipmaps for a texture RLAPI void SetTextureFilter(Texture2D texture, int filterMode); // Set texture scaling filter mode RLAPI void SetTextureWrap(Texture2D texture, int wrapMode); // Set texture wrapping mode |
