diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2005-10-20 22:05:06 +0400 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2005-10-20 22:05:06 +0400 |
commit | acf2fda50ebf553f3426074a7bda009022672c29 (patch) | |
tree | aab760fe5bb5242c955b822d8d3a55bc6b37cbf5 /intern | |
parent | 9409eaf92e1c41913528a7329be69c49463713d2 (diff) |
fix for Game engine bug #1961 furnished by Josh Nimoy.
Thanks.
Although the fix is not perfect (lacks screen requisition safeguards),
it does indeed allow to run game engine fullscreen
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowCarbon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCarbon.cpp b/intern/ghost/intern/GHOST_WindowCarbon.cpp index bd271fd0c8d..5ddacd5f21f 100644 --- a/intern/ghost/intern/GHOST_WindowCarbon.cpp +++ b/intern/ghost/intern/GHOST_WindowCarbon.cpp @@ -182,7 +182,7 @@ GHOST_WindowCarbon::GHOST_WindowCarbon( (SInt32)this); // Store a pointer to the class in the refCon */ //GHOST_PRINT("GHOST_WindowCarbon::GHOST_WindowCarbon(): creating full-screen OpenGL context\n"); - setDrawingContextType(GHOST_kDrawingContextTypeOpenGL); + setDrawingContextType(GHOST_kDrawingContextTypeOpenGL);;installDrawingContext(GHOST_kDrawingContextTypeOpenGL); updateDrawingContext(); activateDrawingContext(); } @@ -477,7 +477,7 @@ GHOST_TSuccess GHOST_WindowCarbon::installDrawingContext(GHOST_TDrawingContextTy } else { //GHOST_PRINT("GHOST_WindowCarbon::installDrawingContext(): init full-screen OpenGL\n"); - pixelFormat = ::aglChoosePixelFormat(0, 0, sPreferredFormatFullScreen); +GDHandle device=::GetMainDevice();pixelFormat=::aglChoosePixelFormat(&device,1,sPreferredFormatFullScreen); m_aglCtx = ::aglCreateContext(pixelFormat, 0); if (!m_aglCtx) break; if (!s_firstaglCtx) s_firstaglCtx = m_aglCtx; |