From 73b409f116a23eee8cb5b2dbc97526b0093a48af Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 22 Nov 2012 10:04:35 +0800 Subject: [PATCH] issue #1564: Enable point size by default on windows. This can fix point size is always equal to 1 pixel in DrawPrimitivesTest. --- cocos2dx/platform/win32/CCEGLView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos2dx/platform/win32/CCEGLView.cpp b/cocos2dx/platform/win32/CCEGLView.cpp index 44df86f806..264ac658ba 100644 --- a/cocos2dx/platform/win32/CCEGLView.cpp +++ b/cocos2dx/platform/win32/CCEGLView.cpp @@ -248,6 +248,9 @@ bool CCEGLView::initGL() return false; } + // Enable point size by default on windows. + glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); + return true; }