mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Assorted cleanups. Don't assert on no clear mask.
This commit is contained in:
1 parent
86966684d4
commit
ca0fb77080
8 files changed
+17
-19
No files matched your search
@@ -327,7 +327,7 @@ bool GLRenderManager::CopyFramebufferToMemorySync(GLRFramebuffer *src, int aspec
|
||||
// TODO: Do this properly.
|
||||
srcFormat = Draw::DataFormat::D24_S8;
|
||||
} else {
|
||||
_assert_(false);
|
||||
return false;
|
||||
}
|
||||
queueRunner_.CopyReadbackBuffer(w, h, srcFormat, destFormat, pixelStride, pixels);
|
||||
return true;
|
||||
@@ -638,6 +638,8 @@ void GLPushBuffer::Flush() {
|
||||
bool GLPushBuffer::AddBuffer() {
|
||||
BufInfo info;
|
||||
info.localMemory = (uint8_t *)AllocateAlignedMemory(size_, 16);
|
||||
if (!info.localMemory)
|
||||
return false;
|
||||
info.buffer = render_->CreateBuffer(target_, size_, GL_DYNAMIC_DRAW);
|
||||
buf_ = buffers_.size();
|
||||
buffers_.push_back(info);
|
||||
|
||||
Reference in new issue
Block a user