GL plugin now dumps textures in correct format, you can enable texture dumping in the settings but you have to set the directory in the ini file

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@130 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1
2008-08-04 21:29:56 +00:00
parent 494c1f3187
commit dd793a11ef
4 changed files with 14 additions and 15 deletions

View File

@ -295,7 +295,7 @@ bool SaveTexture(const char* filename, u32 textarget, u32 tex, int width, int he
GL_REPORT_ERRORD();
std::vector<u32> data(width*height);
glBindTexture(textarget, tex);
glGetTexImage(textarget, 0, GL_RGBA, GL_UNSIGNED_BYTE, &data[0]);
glGetTexImage(textarget, 0, GL_BGRA, GL_UNSIGNED_BYTE, &data[0]);
GLenum err;
GL_REPORT_ERROR();
if (err != GL_NO_ERROR) {