Index: gpu/command_buffer/tests/gl_pointcoord_unittest.cc |
=================================================================== |
--- gpu/command_buffer/tests/gl_pointcoord_unittest.cc (revision 173691) |
+++ gpu/command_buffer/tests/gl_pointcoord_unittest.cc (working copy) |
@@ -39,7 +39,7 @@ |
GLuint vbo = 0; |
glGenBuffers(1, &vbo); |
glBindBuffer(GL_ARRAY_BUFFER, vbo); |
- float vertices[] = { |
+ double vertices[] = { |
piman
2012/12/19 08:45:34
NAK, this needs to stay an array of floats. Maybe
|
-0.5 + pixel_offset, -0.5 + pixel_offset, |
0.5 + pixel_offset, -0.5 + pixel_offset, |
-0.5 + pixel_offset, 0.5 + pixel_offset, |
@@ -136,8 +136,8 @@ |
GLfloat s = 0.5 + (xf + 0.5 - xw) / max_point_size; |
GLfloat t = 0.5 + (yf + 0.5 - yw) / max_point_size; |
uint8 color[4] = { |
- s * 255, |
- (1 - t) * 255, |
+ static_cast<uint8>(s * 255), |
+ static_cast<uint8>((1 - t) * 255), |
0, |
255, |
}; |