Rainbow: WinGL..

git-svn-id: svn://ultimatepp.org/upp/trunk@3680 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
unodgs 2011-07-19 20:23:31 +00:00
parent f5d6c405a7
commit 49ee4e6baf
3 changed files with 3 additions and 2 deletions

View file

@ -53,7 +53,7 @@ void ActivateGlContext()
wglMakeCurrent(hDC, hRC);
}
void DestroyGl(bool destroyWindow)
void DestroyGl()
{
if(hDC != NULL && hRC != NULL)
wglMakeCurrent(NULL, NULL);

View file

@ -29,7 +29,7 @@ extern HGLRC hRC;
int CreateGlWindow(HINSTANCE hInstance);
int CreateGlContext();
void ActivateGlContext();
void DestroyGl(bool destroyWindow = true);
void DestroyGl();
LRESULT CALLBACK glWindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
float GetFps();

View file

@ -26,6 +26,7 @@ void Ctrl::SetDesktop(Ctrl& q)
desktop = &q;
desktop->SetRect(screenRect.GetSize());
desktop->SetOpen(true);
desktop->StateH(OPEN);
desktop->NewTop();
}