mirror of
https://github.com/Patoke/4JLibs.git
synced 2026-06-24 06:55:36 +00:00
feat: game can now save and display thumbnails, code rebuilt from the xbox one edition of the game
fix: Renderer::CaptureThumbnail now can capture thumbnails correctly fix: renderTargetViews and renderTargetShaderResourceViews are no longer null fix: texture saving functions were using BGRA instead of RGBA format
This commit is contained in:
@@ -95,7 +95,7 @@ HRESULT Renderer::SaveTextureData(const char* szFilename, D3DXIMAGE_INFO* pSrcIn
|
||||
image.width = pSrcInfo->Width;
|
||||
image.height = pSrcInfo->Height;
|
||||
image.version = PNG_IMAGE_VERSION;
|
||||
image.format = PNG_FORMAT_BGRA;
|
||||
image.format = PNG_FORMAT_RGBA;
|
||||
|
||||
png_image_write_to_file(&image, szFilename, NULL, ppDataOut, NULL, NULL);
|
||||
return S_OK;
|
||||
@@ -111,7 +111,7 @@ HRESULT Renderer::SaveTextureDataToMemory(void* pOutput, int outputCapacity, int
|
||||
image.height = height;
|
||||
dataEnd = (BYTE *)pOutput + outputCapacity;
|
||||
image.version = PNG_IMAGE_VERSION;
|
||||
image.format = PNG_FORMAT_BGRA;
|
||||
image.format = PNG_FORMAT_RGBA;
|
||||
dataStart = (BYTE*)pOutput;
|
||||
dataCurr = (BYTE*)pOutput;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user