Commits

Alex Szpakowski committed ba1af20

Fixed love.graphics.getColor before setColor is called

  • Participants
  • Parent commits 6a1ad68

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/OpenGL.cpp

 	// Store the current color so we don't have to get it through GL later.
 	GLfloat glcolor[4];
 	glGetFloatv(GL_CURRENT_COLOR, glcolor);
-	state.color.r = glcolor[0];
-	state.color.g = glcolor[1];
-	state.color.b = glcolor[2];
-	state.color.a = glcolor[3];
+	state.color.r = glcolor[0] * 255;
+	state.color.g = glcolor[1] * 255;
+	state.color.b = glcolor[2] * 255;
+	state.color.a = glcolor[3] * 255;
 
 	// Initialize multiple texture unit support for shaders, if available.
 	state.textureUnits.clear();