Commit a3fac8b6 by Nicolas Capens

Interpret integer color and normal coordinates as normalized.

Bug 21278131 Change-Id: Ieef56c20684906037345960d015a5662fe25551e Reviewed-on: https://swiftshader-review.googlesource.com/3240Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 4de7e2e8
...@@ -6909,7 +6909,7 @@ void APIENTRY glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer ...@@ -6909,7 +6909,7 @@ void APIENTRY glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer
{ {
TRACE("(*)"); TRACE("(*)");
glVertexAttribPointer(sw::Normal, 3, type, false, stride, pointer); glVertexAttribPointer(sw::Normal, 3, type, true, stride, pointer);
} }
void APIENTRY glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) void APIENTRY glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
......
...@@ -644,7 +644,7 @@ void ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ...@@ -644,7 +644,7 @@ void ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer
{ {
TRACE("(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const GLvoid *pointer = %p)", size, type, stride, pointer); TRACE("(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const GLvoid *pointer = %p)", size, type, stride, pointer);
VertexAttribPointer(sw::Color0, size, type, false, stride, pointer); VertexAttribPointer(sw::Color0, size, type, true, stride, pointer);
} }
void CompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, void CompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height,
...@@ -2678,7 +2678,7 @@ void NormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer) ...@@ -2678,7 +2678,7 @@ void NormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
{ {
TRACE("(GLenum type = 0x%X, GLsizei stride = %d, const GLvoid *pointer = %p)", type, stride, pointer); TRACE("(GLenum type = 0x%X, GLsizei stride = %d, const GLvoid *pointer = %p)", type, stride, pointer);
VertexAttribPointer(sw::Normal, 3, type, false, stride, pointer); VertexAttribPointer(sw::Normal, 3, type, true, stride, pointer);
} }
void Orthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar) void Orthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment