Enable block transfers in headless for testing.

This allows us to do memory (not just screenshot) tests with GLES, yay.
This commit is contained in:
Unknown W. Brackets 2014-06-14 08:44:14 -07:00
parent 03f86f364f
commit 098e763b82
2 changed files with 7 additions and 1 deletions

View File

@ -321,7 +321,7 @@ int main(int argc, const char* argv[])
// Never report from tests.
g_Config.sReportHost = "";
g_Config.bAutoSaveSymbolMap = false;
g_Config.iRenderingMode = 0;
g_Config.iRenderingMode = 1;
g_Config.bHardwareTransform = true;
#ifdef USING_GLES2
g_Config.iAnisotropyLevel = 0;
@ -346,6 +346,7 @@ int main(int argc, const char* argv[])
g_Config.iSFXVolume = MAX_CONFIG_VOLUME;
g_Config.bSoftwareSkinning = true;
g_Config.bVertexDecoderJit = true;
g_Config.bBlockTransferGPU = true;
#ifdef _WIN32
InitSysDirectories();

View File

@ -102,6 +102,11 @@ void WindowsHeadlessHost::SendOrCollectDebugOutput(const std::string &data)
void WindowsHeadlessHost::SendDebugScreenshot(const u8 *pixbuf, u32 w, u32 h)
{
// Only if we're actually comparing.
if (comparisonScreenshot.empty()) {
return;
}
// We ignore the current framebuffer parameters and just grab the full screen.
const static int FRAME_WIDTH = 512;
const static int FRAME_HEIGHT = 272;