LowLevelWindow_X11::IsSoftwareRenderer

This commit is contained in:
Glenn Maynard
2005-11-13 18:56:14 +00:00
parent 92504b10cc
commit 1cb4525ee6
2 changed files with 10 additions and 0 deletions
@@ -178,6 +178,15 @@ CString LowLevelWindow_X11::TryVideoMode( VideoModeParams p, bool &bNewDeviceOut
return ""; // Success
}
bool LowLevelWindow_X11::IsSoftwareRenderer( CString &sError )
{
if( glXIsDirect( g_X11Display, glXGetCurrentContext() ) )
return false;
sError = "Direct rendering is not available.";
return true;
}
void LowLevelWindow_X11::SwapBuffers()
{
glXSwapBuffers( X11Helper::Dpy, X11Helper::Win );
@@ -13,6 +13,7 @@ public:
void *GetProcAddress(CString s);
CString TryVideoMode(VideoModeParams p, bool &bNewDeviceOut);
bool IsSoftwareRenderer( CString &sError );
void SwapBuffers();
VideoModeParams GetActualVideoModeParams() const { return CurrentParams; }