In Cube demo app, replace call to demo_update_and_draw()

with call to demo_draw() to support new version of cube.c.

Update to latest version of VulkanSamples.
This commit is contained in:
Bill Hollings 2018-04-05 11:15:54 -04:00
parent 794db80bb8
commit 3a3e52b741
3 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@
self.view.contentScaleFactor = UIScreen.mainScreen.nativeScale;
demo_main(&demo, self.view);
demo_update_and_draw(&demo);
demo_draw(&demo);
uint32_t fps = 60;
_displayLink = [CADisplayLink displayLinkWithTarget: self selector: @selector(renderLoop)];
@ -51,7 +51,7 @@
}
-(void) renderLoop {
demo_update_and_draw(&demo);
demo_draw(&demo);
}
@end

View File

@ -59,7 +59,7 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink,
CVOptionFlags flagsIn,
CVOptionFlags* flagsOut,
void* target) {
demo_update_and_draw((struct demo*)target);
demo_draw((struct demo*)target);
return kCVReturnSuccess;
}

View File

@ -1 +1 @@
d435e00dc9f614155621cdadd2f00fbd0585cda6
8dc54f70b2f11858b422477e7a9eaa7fb455dee2