Skip to content

Commit 98042c1

Browse files
committed
Fixed a crash because of uninitialized gl function pointer, Disabled console in the IDE on windows
1 parent ecb0a55 commit 98042c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Core/Contents/Source/PolyGLRenderer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ void OpenGLRenderer::initOSSpecific(){
129129

130130
glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)wglGetProcAddress("glVertexAttribPointer");
131131
glEnableVertexAttribArrayARB = (PFNGLENABLEVERTEXATTRIBARRAYARBPROC)wglGetProcAddress("glEnableVertexAttribArrayARB");
132+
glDisableVertexAttribArrayARB = (PFNGLDISABLEVERTEXATTRIBARRAYARBPROC)wglGetProcAddress("glDisableVertexAttribArrayARB");
132133
glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)wglGetProcAddress("glBindAttribLocation");
133134

134135

IDE/Build/Windows2013/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
7575
PathRemoveFileSpec( FilePath );
7676
SetCurrentDirectory( FilePath );
7777

78-
PolycodeWinIDEView *view = new PolycodeWinIDEView(hInstance, nCmdShow, L"Polycode", true, true);
78+
PolycodeWinIDEView *view = new PolycodeWinIDEView(hInstance, nCmdShow, L"Polycode", true, false);
7979
PolycodeIDEApp *app = new PolycodeIDEApp(view);
8080

8181
globalApp = app;

0 commit comments

Comments
 (0)