From 2df4811807ab4a90c3871b8c9f361799adb98f9c Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Mon, 12 Sep 2011 17:58:05 +0200 Subject: [PATCH] More buildfixes.. --- Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 1870a64f8b..19142e44bb 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -1178,7 +1178,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons std::string movie_file_name; w = dst_rect.GetWidth(); h = dst_rect.GetHeight(); - frame_data = new u8[3 * w * h]; + frame_data = new char[3 * w * h]; glPixelStorei(GL_PACK_ALIGNMENT, 1); glReadPixels(dst_rect.left, dst_rect.bottom, w, h, GL_BGR, GL_UNSIGNED_BYTE, frame_data); if (GL_REPORT_ERROR() == GL_NO_ERROR) @@ -1198,7 +1198,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons } if (pFrameDump) { - FlipImageData(frame_data, w, h); + FlipImageData((u8*)frame_data, w, h); pFrameDump.WriteBytes(frame_data, w * 3 * h); pFrameDump.Flush(); }