From: mittorn Date: Sun, 24 Jul 2016 13:42:37 +0000 (+0000) Subject: Fix mistake X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=a1e879f5cb6fc16ca3b31c47ab4881555c3e1d2c;p=nanogl.git Fix mistake --- diff --git a/nanoWrap.cpp b/nanoWrap.cpp index fa3829e..5ea8acf 100644 --- a/nanoWrap.cpp +++ b/nanoWrap.cpp @@ -161,7 +161,7 @@ static struct nanotmuState tmuInitState = {4,GL_FLOAT,0, NULL, GL_FALSE, GL_FALSE}, {4,GL_FLOAT,0, NULL, GL_FALSE, GL_FALSE}, {4,GL_FLOAT,0, NULL, GL_FALSE, GL_FALSE}, - {0,GL_FLOAT,0, NULL, GL_FALSE, GL_FALSE}, + {3,GL_FLOAT,0, NULL, GL_FALSE, GL_FALSE}, }; static struct nanotmuState* activetmuState = &tmuState0; @@ -1587,8 +1587,7 @@ void glDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid *indi { glEsImpl->glDisableClientState(GL_NORMAL_ARRAY); } - glEsImpl->glColorPointer(tmuState0.normal_array.size, - tmuState0.normal_array.type, + glEsImpl->glNormalPointer(tmuState0.normal_array.type, tmuState0.normal_array.stride, tmuState0.normal_array.ptr); tmuState0.normal_array.changed = GL_FALSE;