mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Fix text object drawing and a bug in stream buffers used in autobatching
--HG-- branch : minor
This commit is contained in:
@@ -65,7 +65,7 @@ void Text::draw(Graphics *gfx, const Matrix4 &m)
|
||||
const size_t color_offset = offsetof(Font::GlyphVertex, color.r);
|
||||
const size_t stride = sizeof(Font::GlyphVertex);
|
||||
|
||||
const GLenum gltype = quadIndices.getType();
|
||||
const GLenum gltype = OpenGL::getGLIndexDataType(quadIndices.getType());
|
||||
const size_t elemsize = quadIndices.getElementSize();
|
||||
|
||||
Graphics::TempTransform transform(gfx, m);
|
||||
|
||||
Reference in New Issue
Block a user