mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 03:55:26 +00:00
Modified Tutorial04: improved code maintenance (replaced static arrays with std::vectors); changed order of some operations (moved vertex buffer creation before rendering resources creation).
This commit is contained in:
@@ -31,10 +31,10 @@ int main( int argc, char **argv ) {
|
||||
if( !tutorial04.CreatePipeline() ) {
|
||||
return -1;
|
||||
}
|
||||
if( !tutorial04.CreateRenderingResources() ) {
|
||||
if( !tutorial04.CreateVertexBuffer() ) {
|
||||
return -1;
|
||||
}
|
||||
if( !tutorial04.CreateVertexBuffer() ) {
|
||||
if( !tutorial04.CreateRenderingResources() ) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user