mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
SoftGPU backend: Fix can't take screenshots
This commit is contained in:
parent
b3a1d45f75
commit
a7d2921a85
1 changed files with 3 additions and 1 deletions
|
@ -452,7 +452,9 @@ void Gfx_DrawIndexedTris_T2fC4b(int verticesCount, int startVertex) {
|
|||
*---------------------------------------------------------Other/Misc------------------------------------------------------*
|
||||
*#########################################################################################################################*/
|
||||
cc_result Gfx_TakeScreenshot(struct Stream* output) {
|
||||
return ERR_NOT_SUPPORTED;
|
||||
struct Bitmap bmp;
|
||||
Bitmap_Init(bmp, width, height, colorBuffer);
|
||||
return Png_Encode(&bmp, output, NULL, false, NULL);
|
||||
}
|
||||
|
||||
cc_bool Gfx_WarnIfNecessary(void) {
|
||||
|
|
Loading…
Reference in a new issue