Background properly renders
This commit is contained in:
@@ -111,10 +111,10 @@ void sdrawCharacter(struct Character c, mfloat_t cursor[2], float scale, struct
|
||||
float h = c.Size[1] * scale;
|
||||
|
||||
float verts[4 * 4] = {
|
||||
xpos, ypos + h, 0.f, 0.f,
|
||||
xpos, ypos, 0.f, 1.f,
|
||||
xpos + w, ypos + h, 1.f, 0.f,
|
||||
xpos + w, ypos, 1.f, 1.f
|
||||
xpos, ypos, 0.f, 0.f,
|
||||
xpos+w, ypos, 1.f, 0.f,
|
||||
xpos, ypos + h, 0.f, 1.f,
|
||||
xpos + w, ypos+h, 1.f, 1.f
|
||||
};
|
||||
|
||||
|
||||
@@ -226,7 +226,9 @@ void renderText(const char *text, mfloat_t pos[2], float scale, mfloat_t color[3
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
glBindBuffer(GL_ARRAY_BUFFER, 0);
|
||||
glBindVertexArray(0);
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user