Fix SCons build.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7137 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2011-02-11 21:47:18 +00:00
parent efd22d234f
commit cf6632c0f1
5 changed files with 6 additions and 9 deletions

View File

@ -1214,9 +1214,9 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
{
s_criticalScreenshot.Enter();
char movie_file_name[255];
int w = dst_rect.GetWidth();
int h = dst_rect.GetHeight();
u8 *data = new u8[3 * w * h];
w = dst_rect.GetWidth();
h = dst_rect.GetHeight();
data = new u8[3 * w * h];
glPixelStorei(GL_PACK_ALIGNMENT, 1);
glReadPixels(dst_rect.left, dst_rect.bottom, w, h, GL_BGR, GL_UNSIGNED_BYTE, data);
if (GL_REPORT_ERROR() == GL_NO_ERROR)