diff options
Diffstat (limited to 'tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.cpp')
| -rw-r--r-- | tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.cpp b/tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.cpp index c689f83a3..87c68db2c 100644 --- a/tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.cpp +++ b/tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.cpp @@ -394,7 +394,7 @@ void GLClientState::deleteTextures(GLsizei n, const GLuint* textures) if (texrec) { const TextureRec* end = m_tex.textures + m_tex.numTextures; memmove(texrec, texrec + 1, - (end - texrec + 1) * sizeof(TextureRec)); + (end - texrec - 1) * sizeof(TextureRec)); m_tex.numTextures--; for (TextureUnit* unit = m_tex.unit; |
