fix build issues

This commit is contained in:
medievil1 2022-06-14 19:13:52 -04:00 committed by RadWolfie
parent 7f89750b7b
commit 3a34b55f08
2 changed files with 5 additions and 2 deletions

View File

@ -2271,7 +2271,10 @@ static void EmuVerifyResourceIsRegistered(xbox::X_D3DResource *pResource, DWORD
// would be overwritten by the surface created in SetRenderTarget
// However, if a non-rendertarget surface is used here, we'll need to recreate it as a render target!
auto hostResource = it->second.pHostResource;
assert(xboxResourceType == GetXboxD3DResourceType(pResource));
auto xboxSurface = (xbox::X_D3DSurface*)pResource;
auto xboxTexture = (xbox::X_D3DTexture*)pResource;
auto xboxResourceType = GetXboxD3DResourceType(pResource);
// Only continue checking if we were able to get the surface desc, if it failed, we fall-through
// to previous resource management behavior

View File

@ -30,7 +30,7 @@
#define LOG_PREFIX CXBXR_MODULE::GUI
#include "common/cxbxr.hpp" // for CxbxrExec
#include "core\hle\D3D8\XbConvert.h"
#include "Logging.h"
#include "WndMain.h"
#include "DlgAbout.h"