undo changes to Camera.cpp

This commit is contained in:
Tropical 2026-03-28 03:10:19 -05:00
parent 69e9db9edc
commit fb745767f2
2 changed files with 7 additions and 7 deletions

View file

@ -22,11 +22,9 @@ float Camera::xa2 = 0.0f;
float Camera::za2 = 0.0f;
void Camera::prepare(std::shared_ptr<Player> player, bool mirror) {
memcpy(modelview->_getDataPointer(),
RenderManager.MatrixGet(GL_MODELVIEW_MATRIX), 16 * sizeof(float));
memcpy(projection->_getDataPointer(),
RenderManager.MatrixGet(GL_PROJECTION_MATRIX), 16 * sizeof(float));
glGetFloat(GL_MODELVIEW_MATRIX, modelview);
glGetFloat(GL_PROJECTION_MATRIX, projection);
/* Original java code for reference
glGetInteger(GL_VIEWPORT, viewport);

View file

@ -541,11 +541,13 @@ void Textures::bindTextureLayers(ResourceLocation* resource) {
}
void Textures::bind(int id) {
// Classic GUI code still performs some raw glBindTexture calls, so this
// path must always rebind rather than trusting lastBoundId to be in sync.
// 4jcraft: Classic GUI code still performs some raw glBindTexture calls, so
// this path must always rebind rather than trusting lastBoundId to be in sync.
// if (id != lastBoundId)
{
if (id < 0) return;
glBindTexture(GL_TEXTURE_2D, id);
// lastBoundId = id;
}
}