diff --git a/stepmania/src/RageDisplay.h b/stepmania/src/RageDisplay.h index d4373ec675..1e6bf0ab54 100644 --- a/stepmania/src/RageDisplay.h +++ b/stepmania/src/RageDisplay.h @@ -141,6 +141,7 @@ public: virtual void SetBlendMode( BlendMode mode ) = 0; virtual bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false ) = 0; + virtual bool SupportsThreadedRendering() { return false; } /* return 0 if failed or internal texture resource handle * (unsigned in OpenGL, texture pointer in D3D) */ diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index b56ea55453..89204dc28a 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -682,6 +682,11 @@ bool RageDisplay_D3D::SupportsTextureFormat( PixelFormat pixfmt, bool realtime ) return SUCCEEDED( hr ); } +bool RageDisplay_D3D::SupportsThreadedRendering() +{ + return true; +} + RageSurface* RageDisplay_D3D::CreateScreenshot() { #if defined(XBOX) diff --git a/stepmania/src/RageDisplay_D3D.h b/stepmania/src/RageDisplay_D3D.h index 20539564af..e3a6ea82a5 100644 --- a/stepmania/src/RageDisplay_D3D.h +++ b/stepmania/src/RageDisplay_D3D.h @@ -18,6 +18,7 @@ public: VideoModeParams GetVideoModeParams() const; void SetBlendMode( BlendMode mode ); bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false ); + bool SupportsThreadedRendering(); unsigned CreateTexture( PixelFormat pixfmt, RageSurface* img,