mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-16 18:59:48 +12:00
check if drawable is valid
This commit is contained in:
parent
b6c72e72e4
commit
dfe38a757c
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ void RendererMTL::reset() {
|
|||
|
||||
void RendererMTL::display() {
|
||||
CA::MetalDrawable* drawable = metalLayer->nextDrawable();
|
||||
if (!drawable) {
|
||||
return;
|
||||
}
|
||||
|
||||
MTL::RenderPassDescriptor* renderPassDescriptor = MTL::RenderPassDescriptor::alloc()->init();
|
||||
MTL::RenderPassColorAttachmentDescriptor* colorAttachment = renderPassDescriptor->colorAttachments()->object(0);
|
||||
|
|
Loading…
Add table
Reference in a new issue