Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -145,6 +145,8 @@ void VoxelSystem::init() { · 144 unmodified lines | ||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | void VoxelSystem::render() { |
| 148 | + | |
| 149 | + glPushMatrix(); | |
| 148 | 150 | |
| 149 | 151 | if (voxelsToRender) { |
| 150 | 152 | glBindBuffer(GL_ARRAY_BUFFER, vboVerticesID); |
| @@ -182,7 +184,7 @@ void VoxelSystem::render() { · 31 unmodified lines | ||
| 182 | 184 | glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); |
| 183 | 185 | |
| 184 | 186 | // scale back down to 1 so heads aren't massive |
| 185 | − glScalef(1, 1, 1); | |
| 187 | + glPopMatrix(); | |
| 186 | 188 | } |
| 187 | 189 | |
| 188 | 190 | void VoxelSystem::simulate(float deltaTime) { |