diff --git a/rpcs3/Emu/GS/GL/GLGSRender.cpp b/rpcs3/Emu/GS/GL/GLGSRender.cpp index addaf0fa99..2c0c999ec3 100644 --- a/rpcs3/Emu/GS/GL/GLGSRender.cpp +++ b/rpcs3/Emu/GS/GL/GLGSRender.cpp @@ -433,6 +433,19 @@ void GLGSRender::WriteDepthBuffer() glReadPixels(0, 0, RSXThread::m_width, RSXThread::m_height, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, &Memory[address]); checkForGlError("glReadPixels"); + //TODO + //buffer rotating + static Array pixels; + pixels.SetCount(RSXThread::m_width * RSXThread::m_height); + u8* src = (u8*)Memory.VirtualToRealAddr(address); + + for(u32 y=0; y