mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
SoftGPU backend: Fix can't take screenshots
This commit is contained in:
parent
b3a1d45f75
commit
a7d2921a85
@ -452,7 +452,9 @@ void Gfx_DrawIndexedTris_T2fC4b(int verticesCount, int startVertex) {
|
|||||||
*---------------------------------------------------------Other/Misc------------------------------------------------------*
|
*---------------------------------------------------------Other/Misc------------------------------------------------------*
|
||||||
*#########################################################################################################################*/
|
*#########################################################################################################################*/
|
||||||
cc_result Gfx_TakeScreenshot(struct Stream* output) {
|
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) {
|
cc_bool Gfx_WarnIfNecessary(void) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user