mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user