mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-22 11:31:57 -04:00
Verbose logging and static multiply (#172)
* Log SDL3GPU device creation errors * Give D3DRMMatrixMultiply static visibility
This commit is contained in:
parent
0fe44b28b8
commit
48958c304e
@ -166,12 +166,14 @@ HRESULT Direct3DRM_SDL3GPUImpl::CreateDevice(IDirect3DRMDevice2** outDevice, DWO
|
||||
NULL
|
||||
);
|
||||
if (device == NULL) {
|
||||
SDL_LogError(LOG_CATEGORY_MINIWIN, "SDL_CreateGPUDevice failed (%s)", SDL_GetError());
|
||||
return DDERR_GENERIC;
|
||||
}
|
||||
if (DDWindow == NULL) {
|
||||
return DDERR_GENERIC;
|
||||
}
|
||||
if (!SDL_ClaimWindowForGPUDevice(device, DDWindow)) {
|
||||
SDL_LogError(LOG_CATEGORY_MINIWIN, "SDL_ClaimWindowForGPUDevice failed (%s)", SDL_GetError());
|
||||
return DDERR_GENERIC;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ Direct3DRMViewport_SDL3GPUImpl::~Direct3DRMViewport_SDL3GPUImpl()
|
||||
FreeDeviceResources();
|
||||
}
|
||||
|
||||
void D3DRMMatrixMultiply(D3DRMMATRIX4D out, const D3DRMMATRIX4D a, const D3DRMMATRIX4D b)
|
||||
static void D3DRMMatrixMultiply(D3DRMMATRIX4D out, const D3DRMMATRIX4D a, const D3DRMMATRIX4D b)
|
||||
{
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
for (int j = 0; j < 4; ++j) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user