Revert "Be less dumb."
Revert "Actually, filename really does need to be a parameter because of some random debug thing." Revert "fix non-HAVE_WX case" Revert "Handle screenshot saving in RenderBase. Removes dependency on D3DX11 for screenshots (texture dumping is still broken)." This reverts commits00fe5057f1,74b5fb3ab4,cd46138d29and5f72542e06because taking screenshots in D3D still crashed for me so there was no point in the code changes (which I found ugly anyway).
This commit is contained in:
1 parent
3de2ee5d46
commit
0b02880b76
7 files changed
+148
-111
No files matched your search
@@ -110,6 +110,8 @@ public:
|
||||
|
||||
virtual void UpdateViewport() = 0;
|
||||
|
||||
virtual bool SaveScreenshot(const std::string &filename, const TargetRectangle &rc) = 0;
|
||||
|
||||
static unsigned int GetPrevPixelFormat() { return prev_efb_format; }
|
||||
static void StorePixelFormat(unsigned int new_format) { prev_efb_format = new_format; }
|
||||
|
||||
@@ -121,11 +123,6 @@ protected:
|
||||
static void CheckFifoRecording();
|
||||
static void RecordVideoMemory();
|
||||
|
||||
#if defined(HAVE_WX) && HAVE_WX
|
||||
static void SaveScreenshotOnThread(u8* data, size_t width, size_t height, std::string filename);
|
||||
#endif
|
||||
static void SaveScreenshot(u8* ptr, size_t width, size_t height, std::string filename);
|
||||
|
||||
static volatile bool s_bScreenshot;
|
||||
static std::mutex s_criticalScreenshot;
|
||||
static std::string s_sScreenshotName;
|
||||
|
||||
Reference in new issue
Block a user