Fix Bug In Texture Scaling Code
minecraft-pi-reborn/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2021-09-30 19:37:24 -04:00
parent c45211ad22
commit 6a9a22ac25
3 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
2.2.5 2.2.6

View File

@ -1,5 +1,8 @@
# Changelog # Changelog
**2.2.5**
* Fix Bug In Texture Scaling Code
**2.2.5** **2.2.5**
* Scale Animated Textures * Scale Animated Textures
* Add More Blocks To Expanded Creative Inventory * Add More Blocks To Expanded Creative Inventory

View File

@ -47,7 +47,7 @@ HOOK(glTexImage2D, void, (GLenum target, GLint level, GLint internalformat, GLsi
HOOK(glDeleteTextures, void, (GLsizei n, const GLuint *textures)) { HOOK(glDeleteTextures, void, (GLsizei n, const GLuint *textures)) {
// Remove Old Data // Remove Old Data
for (int i = 0; i < n; i++) { for (int i = 0; i < n; i++) {
GLint id = textures[n]; GLint id = textures[i];
std::vector<texture_data>::iterator it = get_texture_data().begin(); std::vector<texture_data>::iterator it = get_texture_data().begin();
while (it != get_texture_data().end()) { while (it != get_texture_data().end()) {
texture_data data = *it; texture_data data = *it;