mirror of https://github.com/axmolengine/axmol.git
fixed #555: upgrade effects to 1.0.0-rc3
This commit is contained in:
parent
178de84e15
commit
210840a22a
|
@ -110,8 +110,8 @@ namespace cocos2d
|
||||||
CCDirector *pDirector = CCDirector::sharedDirector();
|
CCDirector *pDirector = CCDirector::sharedDirector();
|
||||||
CCSize s = pDirector->getWinSizeInPixels();
|
CCSize s = pDirector->getWinSizeInPixels();
|
||||||
|
|
||||||
unsigned int POTWide = ccNextPOT((unsigned int)s.width);
|
unsigned long POTWide = ccNextPOT((unsigned int)s.width);
|
||||||
unsigned int POTHigh = ccNextPOT((unsigned int)s.height);
|
unsigned long POTHigh = ccNextPOT((unsigned int)s.height);
|
||||||
|
|
||||||
CCTexture2DPixelFormat format = pDirector->getPiexFormat() == kCCPixelFormatRGB565 ? kCCTexture2DPixelFormat_RGB565 : kCCTexture2DPixelFormat_RGBA8888;
|
CCTexture2DPixelFormat format = pDirector->getPiexFormat() == kCCPixelFormatRGB565 ? kCCTexture2DPixelFormat_RGB565 : kCCTexture2DPixelFormat_RGBA8888;
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ namespace cocos2d
|
||||||
|
|
||||||
glVertexPointer(3, GL_FLOAT, 0, m_pVertices);
|
glVertexPointer(3, GL_FLOAT, 0, m_pVertices);
|
||||||
glTexCoordPointer(2, GL_FLOAT, 0, m_pTexCoordinates);
|
glTexCoordPointer(2, GL_FLOAT, 0, m_pTexCoordinates);
|
||||||
glDrawElements(GL_TRIANGLES, n * 6, GL_UNSIGNED_SHORT, m_pIndices);
|
glDrawElements(GL_TRIANGLES, (GLsizei)n * 6, GL_UNSIGNED_SHORT, m_pIndices);
|
||||||
|
|
||||||
// restore GL default state
|
// restore GL default state
|
||||||
glEnableClientState(GL_COLOR_ARRAY);
|
glEnableClientState(GL_COLOR_ARRAY);
|
||||||
|
@ -521,7 +521,7 @@ namespace cocos2d
|
||||||
|
|
||||||
glVertexPointer(3, GL_FLOAT, 0, m_pVertices);
|
glVertexPointer(3, GL_FLOAT, 0, m_pVertices);
|
||||||
glTexCoordPointer(2, GL_FLOAT, 0, m_pTexCoordinates);
|
glTexCoordPointer(2, GL_FLOAT, 0, m_pTexCoordinates);
|
||||||
glDrawElements(GL_TRIANGLES, n*6, GL_UNSIGNED_SHORT, m_pIndices);
|
glDrawElements(GL_TRIANGLES, (GLsizei)n*6, GL_UNSIGNED_SHORT, m_pIndices);
|
||||||
|
|
||||||
// restore default GL state
|
// restore default GL state
|
||||||
glEnableClientState(GL_COLOR_ARRAY);
|
glEnableClientState(GL_COLOR_ARRAY);
|
||||||
|
|
Loading…
Reference in New Issue