Browse Source

cocoa: Fix compilation error

rdb 10 months ago
parent
commit
8c9ba6dc38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/cocoagldisplay/cocoaGLGraphicsPipe.mm

+ 1 - 1
panda/src/cocoagldisplay/cocoaGLGraphicsPipe.mm

@@ -125,7 +125,7 @@ make_output(const std::string &name,
         precertify = true;
         precertify = true;
       }
       }
     }
     }
-    if (host != nullptr && host->get_engine() == _engine) {
+    if (host != nullptr && host->get_engine() == engine) {
       return new GLGraphicsBuffer(engine, this, name, fb_prop, win_prop,
       return new GLGraphicsBuffer(engine, this, name, fb_prop, win_prop,
                                   flags, gsg, host);
                                   flags, gsg, host);
     } else {
     } else {