fixed transparent screenshot background if no gamma and no supersampling

This commit is contained in:
Zeno Rogue
2019-02-06 16:37:20 +01:00
parent 261f039ed6
commit 2a45e1340c
+1 -1
View File
@@ -266,7 +266,7 @@ void default_screenshot_content() {
#if CAP_PNG
void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
if(gamma == 1 && shot_aa == 1) {
if(gamma == 1 && shot_aa == 1 && sdark == sbright) {
IMAGESAVE(sdark, fname.c_str());
return;
}