mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
One more warning from gcc
This commit is contained in:
parent
41f0b1682e
commit
dc50db7ee5
1 changed files with 2 additions and 2 deletions
|
@ -395,7 +395,7 @@ void copyCompressedTexGPUMem(const gpu::Texture& texture, GLenum texTarget, GLui
|
||||||
|
|
||||||
uint16_t sourceLevel = mip - srcMipOffset;
|
uint16_t sourceLevel = mip - srcMipOffset;
|
||||||
|
|
||||||
for (GLuint f = 0; f < faceTargets.size(); f++) {
|
for (GLint f = 0; f < (GLint)faceTargets.size(); f++) {
|
||||||
glGetCompressedTexImage(faceTargets[f], sourceLevel, (void*) (sourceMip._offset + f * sourceMip._faceSize));
|
glGetCompressedTexImage(faceTargets[f], sourceLevel, (void*) (sourceMip._offset + f * sourceMip._faceSize));
|
||||||
}
|
}
|
||||||
(void)CHECK_GL_ERROR();
|
(void)CHECK_GL_ERROR();
|
||||||
|
@ -414,7 +414,7 @@ void copyCompressedTexGPUMem(const gpu::Texture& texture, GLenum texTarget, GLui
|
||||||
|
|
||||||
uint16_t destLevel = mip - destMipOffset;
|
uint16_t destLevel = mip - destMipOffset;
|
||||||
|
|
||||||
for (GLuint f = 0; f < faceTargets.size(); f++) {
|
for (GLint f = 0; f < (GLint)faceTargets.size(); f++) {
|
||||||
#ifdef DEBUG_COPY
|
#ifdef DEBUG_COPY
|
||||||
GLint destWidth, destHeight, destSize;
|
GLint destWidth, destHeight, destSize;
|
||||||
glGetTexLevelParameteriv(faceTargets.front(), destLevel, GL_TEXTURE_WIDTH, &destWidth);
|
glGetTexLevelParameteriv(faceTargets.front(), destLevel, GL_TEXTURE_WIDTH, &destWidth);
|
||||||
|
|
Loading…
Reference in a new issue