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:
parent
794db80bb8
commit
3a3e52b741
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
d435e00dc9f614155621cdadd2f00fbd0585cda6
|
||||
8dc54f70b2f11858b422477e7a9eaa7fb455dee2
|
||||
|
Loading…
x
Reference in New Issue
Block a user