Showing the changes to interface/src/ui/TextRenderer.cpp (1 of 7 files). Show all
Unified · Split
| @@ -24,6 +24,8 @@ · 23 unmodified lines | ||
| 24 | 24 | #include "glm/glm.hpp" |
| 25 | 25 | #include <glm/gtc/matrix_transform.hpp> |
| 26 | 26 | |
| 27 | +#include "gpu/GLBackend.h" | |
| 28 | + | |
| 27 | 29 | |
| 28 | 30 | // the width/height of the cached glyph textures |
| 29 | 31 | const int IMAGE_SIZE = 256; |
| @@ -297,8 +299,8 @@ void TextRenderer::drawBatch() { · 267 unmodified lines | ||
| 297 | 299 | // TODO: Apply the correct font atlas texture, for now only one texture per TextRenderer so it should be good |
| 298 | 300 | glBindTexture(GL_TEXTURE_2D, _currentTextureID); |
| 299 | 301 | |
| 300 | − GLuint vbo = _glyphsBuffer.getGLBufferObject(); | |
| 301 | − GLuint colorvbo = _glyphsColorBuffer.getGLBufferObject(); | |
| 302 | + GLuint vbo = gpu::GLBackend::getBufferID(_glyphsBuffer); | |
| 303 | + GLuint colorvbo = gpu::GLBackend::getBufferID(_glyphsColorBuffer); | |
| 302 | 304 | |
| 303 | 305 | glEnableClientState(GL_VERTEX_ARRAY); |
| 304 | 306 | glEnableClientState(GL_TEXTURE_COORD_ARRAY); |