Add SwiftShader dump from Feb 6 2013
diff --git a/src/Main/FrameBufferDD.cpp b/src/Main/FrameBufferDD.cpp
index fa579f7..50932ca 100644
--- a/src/Main/FrameBufferDD.cpp
+++ b/src/Main/FrameBufferDD.cpp
@@ -29,7 +29,7 @@
return 1;
}
- FrameBufferDD::FrameBufferDD(HWND windowHandle, int width, int height, bool fullscreen, bool topLeftOrigin) : FrameBuffer(windowHandle, width, height, fullscreen, topLeftOrigin)
+ FrameBufferDD::FrameBufferDD(HWND windowHandle, int width, int height, bool fullscreen, bool topLeftOrigin) : FrameBufferWin(windowHandle, width, height, fullscreen, topLeftOrigin)
{
directDraw = 0;
frontBuffer = 0;
@@ -240,11 +240,9 @@
updateBounds(windowHandle);
}
- void FrameBufferDD::flip(HWND windowOverride, void *source, bool HDR)
+ void FrameBufferDD::flip(void *source, bool HDR)
{
- updateClipper(windowOverride);
-
- copy(windowOverride, source, HDR);
+ copy(source, HDR);
if(!readySurfaces())
{
@@ -273,11 +271,9 @@
}
}
- void FrameBufferDD::blit(HWND windowOverride, void *source, const Rect *sourceRect, const Rect *destRect, bool HDR)
+ void FrameBufferDD::blit(void *source, const Rect *sourceRect, const Rect *destRect, bool HDR)
{
- updateClipper(windowOverride);
-
- copy(windowOverride, source, HDR);
+ copy(source, HDR);
if(!readySurfaces())
{
@@ -314,6 +310,22 @@
}
}
+ void FrameBufferDD::flip(HWND windowOverride, void *source, bool HDR)
+ {
+ updateClipper(windowOverride);
+ updateBounds(windowOverride);
+
+ flip(source, HDR);
+ }
+
+ void FrameBufferDD::blit(HWND windowOverride, void *source, const Rect *sourceRect, const Rect *destRect, bool HDR)
+ {
+ updateClipper(windowOverride);
+ updateBounds(windowOverride);
+
+ blit(source, sourceRect, destRect, HDR);
+ }
+
void FrameBufferDD::screenshot(void *destBuffer)
{
if(!readySurfaces())