fix warning from "normalized" cast
TRAC #11556
* Restore warning C4800.
* Compare GLboolean normalized against GL_TRUE per the spec.
Signed-off-by: Daniel Koch
Author: Andrew Lewycky
git-svn-id: https://angleproject.googlecode.com/svn/trunk@73 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/libGLESv2.cpp b/src/libGLESv2/libGLESv2.cpp
index efbfb04..6757249 100644
--- a/src/libGLESv2/libGLESv2.cpp
+++ b/src/libGLESv2/libGLESv2.cpp
@@ -4001,7 +4001,7 @@
context->vertexAttribute[index].mBoundBuffer = context->arrayBuffer;
context->vertexAttribute[index].mSize = size;
context->vertexAttribute[index].mType = type;
- context->vertexAttribute[index].mNormalized = normalized;
+ context->vertexAttribute[index].mNormalized = (normalized == GL_TRUE);
context->vertexAttribute[index].mStride = stride;
context->vertexAttribute[index].mPointer = ptr;
}