[vulkan] Fix typos
This commit is contained in:
parent
c4a2dff099
commit
31a8d189f0
|
@ -52,7 +52,6 @@ VulkanContext::~VulkanContext() {
|
||||||
|
|
||||||
bool VulkanContext::Initialize() {
|
bool VulkanContext::Initialize() {
|
||||||
auto provider = static_cast<VulkanProvider*>(provider_);
|
auto provider = static_cast<VulkanProvider*>(provider_);
|
||||||
auto device = provider->device();
|
|
||||||
|
|
||||||
if (target_window_) {
|
if (target_window_) {
|
||||||
// Create swap chain used to present to the window.
|
// Create swap chain used to present to the window.
|
||||||
|
|
|
@ -336,7 +336,7 @@ bool VulkanInstance::CreateInstance() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load Vulkan entrypoints and extensions.
|
// Load Vulkan entry points and extensions.
|
||||||
volkLoadInstance(handle);
|
volkLoadInstance(handle);
|
||||||
|
|
||||||
// Enable debug validation, if needed.
|
// Enable debug validation, if needed.
|
||||||
|
|
|
@ -70,7 +70,7 @@ int window_demo_main(const std::vector<std::string>& args) {
|
||||||
std::unique_ptr<GraphicsProvider> graphics_provider;
|
std::unique_ptr<GraphicsProvider> graphics_provider;
|
||||||
loop->PostSynchronous([&window, &graphics_provider]() {
|
loop->PostSynchronous([&window, &graphics_provider]() {
|
||||||
// Create graphics provider and an initial context for the window.
|
// Create graphics provider and an initial context for the window.
|
||||||
// The window will finish initialization wtih the context (loading
|
// The window will finish initialization with the context (loading
|
||||||
// resources, etc).
|
// resources, etc).
|
||||||
graphics_provider = CreateDemoGraphicsProvider(window.get());
|
graphics_provider = CreateDemoGraphicsProvider(window.get());
|
||||||
window->set_context(graphics_provider->CreateContext(window.get()));
|
window->set_context(graphics_provider->CreateContext(window.get()));
|
||||||
|
|
Loading…
Reference in New Issue