summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorKim Kulling <[email protected]>2018-08-05 23:53:34 +0200
committerKim Kulling <[email protected]>2018-08-05 23:53:34 +0200
commitf5f7ed79b820209e8d1cda0159b3d42d2aff196b (patch)
tree790ee22dba42f336214b6d1fad0a54e55ab27234 /src/rlgl.h
parentb2cac82fa0190952d59227442e56dbadfe789e51 (diff)
downloadraylib-f5f7ed79b820209e8d1cda0159b3d42d2aff196b.tar.gz
raylib-f5f7ed79b820209e8d1cda0159b3d42d2aff196b.zip
Fix compiler warnings of lib
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index d2a7375a..09f99ea2 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3306,8 +3306,8 @@ Texture2D GenTexturePrefilter(Shader shader, Texture2D cubemap, int size)
for (unsigned int mip = 0; mip < MAX_MIPMAP_LEVELS; mip++)
{
// Resize framebuffer according to mip-level size.
- unsigned int mipWidth = size*(int) powf(0.5f, mip);
- unsigned int mipHeight = size* (int) powf(0.5f, mip);
+ unsigned int mipWidth = size*(int) powf(0.5f, (float) mip);
+ unsigned int mipHeight = size* (int) powf(0.5f, (float) mip);
glBindRenderbuffer(GL_RENDERBUFFER, rbo);
glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, mipWidth, mipHeight);