X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2FCommon%2Ffreeglut_window.c;h=bcbe44d214331ae7e5357a309201486537007473;hb=1ede9f68f98e29ddd07bd466310967e716bfac92;hp=9610a387952d874b6e86d91ce4d03864e14e7f65;hpb=76169d74298feb3c4976af3f0f10376f56aec38d;p=freeglut diff --git a/src/Common/freeglut_window.c b/src/Common/freeglut_window.c index 9610a38..bcbe44d 100644 --- a/src/Common/freeglut_window.c +++ b/src/Common/freeglut_window.c @@ -29,14 +29,6 @@ #include #include "freeglut_internal.h" -#if defined(_WIN32_WCE) -# include -# ifdef FREEGLUT_LIB_PRAGMAS -# pragma comment( lib, "Aygshell.lib" ) -# endif -#endif /* defined(_WIN32_WCE) */ - - /* * TODO BEFORE THE STABLE RELEASE: * @@ -47,14 +39,11 @@ * glutCreateSubWindow() -- Check when default position and size is {-1,-1} * glutDestroyWindow() -- check the Win32 version * glutSetWindow() -- check the Win32 version - * glutGetWindow() -- OK * glutSetWindowTitle() -- check the Win32 version * glutSetIconTitle() -- check the Win32 version * glutShowWindow() -- check the Win32 version * glutHideWindow() -- check the Win32 version * glutIconifyWindow() -- check the Win32 version - * glutReshapeWindow() -- check the Win32 version - * glutPositionWindow() -- check the Win32 version * glutPushWindow() -- check the Win32 version * glutPopWindow() -- check the Win32 version */ @@ -156,11 +145,13 @@ void fgOpenWindow( SFG_Window* window, const char* title, window->Window.DoubleBuffered = ( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0; +#ifndef EGL_VERSION_1_0 /* No glDrawBuffer/glReadBuffer in GLES */ if ( ! window->Window.DoubleBuffered ) { glDrawBuffer ( GL_FRONT ); glReadBuffer ( GL_FRONT ); } +#endif } /* @@ -261,7 +252,7 @@ void FGAPIENTRY glutDestroyWindow( int windowID ) } /* - * This function selects the current window + * This function selects the specified window as the current window */ void FGAPIENTRY glutSetWindow( int ID ) {