Support flipped and not flipped buffers.
This commit is contained in:
parent
47b43e997f
commit
6a313ac204
5 changed files with 20 additions and 9 deletions
|
@ -147,7 +147,7 @@ BOOL CGEDebugger::DlgProc(UINT message, WPARAM wParam, LPARAM lParam) {
|
|||
|
||||
if (bufferResult) {
|
||||
auto fmt = SimpleGLWindow::Format(buffer.GetFormat());
|
||||
frameWindow->Draw(buffer.GetData(), buffer.GetStride(), buffer.GetHeight(), fmt, SimpleGLWindow::RESIZE_SHRINK_CENTER);
|
||||
frameWindow->Draw(buffer.GetData(), buffer.GetStride(), buffer.GetHeight(), buffer.GetFlipped(), fmt, SimpleGLWindow::RESIZE_SHRINK_CENTER);
|
||||
} else {
|
||||
ERROR_LOG(COMMON, "Unable to get buffer.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue