From cf939620eabca1ae8afd93a7971d782e5c62fd7b Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Mon, 22 Feb 2016 19:32:57 +0000 Subject: [PATCH] gsdx-ogl: Save depth image as RGB and alpha images --- plugins/GSdx/GSPng.cpp | 1 - plugins/GSdx/GSPng.h | 1 - plugins/GSdx/GSTextureOGL.cpp | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/GSdx/GSPng.cpp b/plugins/GSdx/GSPng.cpp index e31033f29c..94401b0e48 100644 --- a/plugins/GSdx/GSPng.cpp +++ b/plugins/GSdx/GSPng.cpp @@ -34,7 +34,6 @@ struct { {PNG_COLOR_TYPE_RGB , 4, 3, 8 , {".png", nullptr}}, // RGB_PNG {PNG_COLOR_TYPE_RGB , 4, 3, 8 , {".png", "_alpha.png"}}, // RGB_A_PNG {PNG_COLOR_TYPE_GRAY, 4, 1, 8 , {"_alpha.png", nullptr}}, // ALPHA_PNG - {PNG_COLOR_TYPE_GRAY, 4, 2, 16, {"_lsb.png", "_msb.png"}}, // DEPTH_PNG {PNG_COLOR_TYPE_GRAY, 1, 1, 8 , {"_R8I.png", nullptr}}, // R8I_PNG {PNG_COLOR_TYPE_GRAY, 2, 2, 16, {"_R16I.png", nullptr}}, // R16I_PNG {PNG_COLOR_TYPE_GRAY, 4, 2, 16, {"_R32I_lsb.png", "_R32I_msb.png"}}, // R32I_PNG diff --git a/plugins/GSdx/GSPng.h b/plugins/GSdx/GSPng.h index db881e7f47..2e0874814a 100644 --- a/plugins/GSdx/GSPng.h +++ b/plugins/GSdx/GSPng.h @@ -29,7 +29,6 @@ namespace GSPng { RGB_PNG, RGB_A_PNG, ALPHA_PNG, - DEPTH_PNG, R8I_PNG, R16I_PNG, R32I_PNG, diff --git a/plugins/GSdx/GSTextureOGL.cpp b/plugins/GSdx/GSTextureOGL.cpp index 22748c56e2..77c6302247 100644 --- a/plugins/GSdx/GSTextureOGL.cpp +++ b/plugins/GSdx/GSTextureOGL.cpp @@ -443,7 +443,7 @@ bool GSTextureOGL::Save(const string& fn, bool dds) glBindFramebuffer(GL_READ_FRAMEBUFFER, 0); - fmt = GSPng::DEPTH_PNG; + fmt = GSPng::RGB_A_PNG; } else if(m_format == GL_R32I) { glGetTextureImage(m_texture_id, 0, GL_RED_INTEGER, GL_INT, buf_size, image.get());