diff options
| author | Kim Kulling <[email protected]> | 2018-08-05 23:53:34 +0200 |
|---|---|---|
| committer | Kim Kulling <[email protected]> | 2018-08-05 23:53:34 +0200 |
| commit | f5f7ed79b820209e8d1cda0159b3d42d2aff196b (patch) | |
| tree | 790ee22dba42f336214b6d1fad0a54e55ab27234 /src/rlgl.h | |
| parent | b2cac82fa0190952d59227442e56dbadfe789e51 (diff) | |
| download | raylib-f5f7ed79b820209e8d1cda0159b3d42d2aff196b.tar.gz raylib-f5f7ed79b820209e8d1cda0159b3d42d2aff196b.zip | |
Fix compiler warnings of lib
Diffstat (limited to 'src/rlgl.h')
| -rw-r--r-- | src/rlgl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
