mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Removes redundant normalizations for float types.
Tested By: Langbart Differential Revision: https://code.wildfiregames.com/D3517 This was SVN commit r24833.
This commit is contained in:
@@ -638,13 +638,13 @@ public:
|
||||
|
||||
virtual void NormalPointer(GLenum type, GLsizei stride, const void* pointer)
|
||||
{
|
||||
pglVertexAttribPointerARB(2, 3, type, GL_TRUE, stride, pointer);
|
||||
pglVertexAttribPointerARB(2, 3, type, (type == GL_FLOAT ? GL_FALSE : GL_TRUE), stride, pointer);
|
||||
m_ValidStreams |= STREAM_NORMAL;
|
||||
}
|
||||
|
||||
virtual void ColorPointer(GLint size, GLenum type, GLsizei stride, const void* pointer)
|
||||
{
|
||||
pglVertexAttribPointerARB(3, size, type, GL_TRUE, stride, pointer);
|
||||
pglVertexAttribPointerARB(3, size, type, (type == GL_FLOAT ? GL_FALSE : GL_TRUE), stride, pointer);
|
||||
m_ValidStreams |= STREAM_COLOR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user