mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 12:05:20 +00:00
Small code refactoring.
This commit is contained in:
@@ -120,7 +120,7 @@ namespace ApiWithoutSecrets {
|
||||
TranslateMessage( &message );
|
||||
DispatchMessage( &message );
|
||||
} else {
|
||||
// Draw
|
||||
// Resize
|
||||
if( resize ) {
|
||||
resize = false;
|
||||
if( !project.OnWindowSizeChanged() ) {
|
||||
@@ -128,6 +128,7 @@ namespace ApiWithoutSecrets {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Draw
|
||||
if( project.ReadyToDraw() ) {
|
||||
if( !project.Draw() ) {
|
||||
result = false;
|
||||
|
||||
Reference in New Issue
Block a user