summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab44ab4)
raw | patch | inline | side by side (parent: ab44ab4)
author | mittorn <mittorn@sibmail.com> | |
Fri, 20 Oct 2017 03:04:51 +0000 (10:04 +0700) | ||
committer | mittorn <mittorn@sibmail.com> | |
Fri, 20 Oct 2017 03:04:51 +0000 (10:04 +0700) |
nanoWrap.cpp | patch | blob | history |
diff --git a/nanoWrap.cpp b/nanoWrap.cpp
index 0e997fe783b5cfd83a7d7b6112111472c25d3f6b..b9097386b430fd2920a8f23e63a567b96f2292b1 100644 (file)
--- a/nanoWrap.cpp
+++ b/nanoWrap.cpp
@@ -1913,6 +1913,9 @@ void glDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid *indi
else
{
glEsImpl->glDisableClientState( GL_COLOR_ARRAY );
+ glEsImpl->glColor4f( currentVertexAttrib.red/255.0f, currentVertexAttrib.green/255.0f,
+ currentVertexAttrib.blue/255.0f, currentVertexAttrib.alpha/255.0f );
+
}
glEsImpl->glColorPointer( tmuState0.color_array.size,
tmuState0.color_array.type,
else
{
glEsImpl->glDisableClientState( GL_COLOR_ARRAY );
+ glEsImpl->glColor4f( currentVertexAttrib.red/255.0f, currentVertexAttrib.green/255.0f,
+ currentVertexAttrib.blue/255.0f, currentVertexAttrib.alpha/255.0f );
+
}
glEsImpl->glColorPointer( tmuState0.color_array.size,
tmuState0.color_array.type,