projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix broken color state management
[supertux.git]
/
src
/
video
/
drawing_context.cpp
diff --git
a/src/video/drawing_context.cpp
b/src/video/drawing_context.cpp
index
60faef5
..
8633956
100644
(file)
--- a/
src/video/drawing_context.cpp
+++ b/
src/video/drawing_context.cpp
@@
-380,6
+380,7
@@
DrawingContext::draw_gradient(const DrawingRequest& request) const
glVertex2f(0, SCREEN_HEIGHT);
glEnd();
glEnable(GL_TEXTURE_2D);
+ glColor4f(1, 1, 1, 1);
}
void
@@
-413,6
+414,8
@@
DrawingContext::draw_filled_rect(const DrawingRequest& request) const
glVertex2f(x, y+h);
glEnd();
glEnable(GL_TEXTURE_2D);
+
+ glColor4f(1, 1, 1, 1);
}
void