Parcourir la source

Fixed a crash because of uninitialized gl function pointer, Disabled console in the IDE on windows

Ivan Safrin il y a 11 ans
Parent
commit
98042c1598
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      Core/Contents/Source/PolyGLRenderer.cpp
  2. 1 1
      IDE/Build/Windows2013/main.cpp

+ 1 - 0
Core/Contents/Source/PolyGLRenderer.cpp

@@ -129,6 +129,7 @@ void OpenGLRenderer::initOSSpecific(){
 
 
 		glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)wglGetProcAddress("glVertexAttribPointer");
 		glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)wglGetProcAddress("glVertexAttribPointer");
 		glEnableVertexAttribArrayARB = (PFNGLENABLEVERTEXATTRIBARRAYARBPROC)wglGetProcAddress("glEnableVertexAttribArrayARB");
 		glEnableVertexAttribArrayARB = (PFNGLENABLEVERTEXATTRIBARRAYARBPROC)wglGetProcAddress("glEnableVertexAttribArrayARB");
+		glDisableVertexAttribArrayARB = (PFNGLDISABLEVERTEXATTRIBARRAYARBPROC)wglGetProcAddress("glDisableVertexAttribArrayARB");
 		glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)wglGetProcAddress("glBindAttribLocation");
 		glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)wglGetProcAddress("glBindAttribLocation");
 
 
 		
 		

+ 1 - 1
IDE/Build/Windows2013/main.cpp

@@ -75,7 +75,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
 	PathRemoveFileSpec( FilePath );    
 	PathRemoveFileSpec( FilePath );    
 	SetCurrentDirectory( FilePath );
 	SetCurrentDirectory( FilePath );
 
 
-	PolycodeWinIDEView *view = new PolycodeWinIDEView(hInstance, nCmdShow, L"Polycode", true, true);
+	PolycodeWinIDEView *view = new PolycodeWinIDEView(hInstance, nCmdShow, L"Polycode", true, false);
 	PolycodeIDEApp *app = new PolycodeIDEApp(view);
 	PolycodeIDEApp *app = new PolycodeIDEApp(view);
 
 
 	globalApp = app;
 	globalApp = app;