This commit is contained in:
2024-05-23 12:05:00 -04:00
parent 93612bb816
commit e6e567725b
2 changed files with 5 additions and 2 deletions

View File

@@ -225,8 +225,10 @@ namespace JGL
float x = pos.x;
float y = pos.y;
float z = pos.z;
GLfloat currentColor[4];
glGetFloatv(GL_CURRENT_COLOR, currentColor);
glUseProgram(0); // Fixed-function pipeline.
glColor3f(1.0f, 1.0f, 1.0f);
glColor4f(color.r, color.g, color.b, 1.0f);
FT_Set_Pixel_Sizes(face, 0, size);
@@ -282,6 +284,7 @@ namespace JGL
}
glBindTexture(GL_TEXTURE_2D, 0); // Unbind texture
glColor4f(currentColor[0], currentColor[1], currentColor[2], currentColor[3]); //Set draw color back to whatever it was before.
}
}