Skip to content

Commit

Permalink
Merge pull request #403 from novelrt/bugfix/input-nullptr-fix
Browse files Browse the repository at this point in the history
Input nullptr fix.
  • Loading branch information
RubyNova authored Feb 5, 2022
2 parents 267af65 + 0fe3624 commit 609e507
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace NovelRT::Graphics::Vulkan
{
class VulkanGraphicsPluginProvider final : public PluginManagement::IGraphicsPluginProvider
{
private:
protected:
NovelRT::Utilities::Lazy<std::shared_ptr<VulkanGraphicsProvider>> _graphicsProvider;

[[nodiscard]] std::shared_ptr<VulkanGraphicsProvider> CreateVulkanGraphicsProviderInternal();
Expand Down
2 changes: 1 addition & 1 deletion include/NovelRT/Input/Glfw/GlfwInputPluginProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace NovelRT::Input::Glfw
{
class GlfwInputPluginProvider final : public PluginManagement::IInputPluginProvider
{
private:
protected:
std::shared_ptr<GlfwInputDevice> _inputDevice;

[[nodiscard]] GlfwInputDevice* GetInputDeviceInternal() override;
Expand Down
2 changes: 1 addition & 1 deletion include/NovelRT/PluginManagement/IGraphicsPluginProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace NovelRT::PluginManagement
{
class IGraphicsPluginProvider
{
private:
protected:
[[nodiscard]] virtual Graphics::GraphicsProvider* GetGraphicsProviderInternal() = 0;

public:
Expand Down
2 changes: 1 addition & 1 deletion include/NovelRT/PluginManagement/IInputPluginProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace NovelRT::PluginManagement
{
class IInputPluginProvider
{
private:
protected:
[[nodiscard]] virtual NovelRT::Input::IInputDevice* GetInputDeviceInternal() = 0;

public:
Expand Down
1 change: 1 addition & 0 deletions samples/EcsPipeline/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ int main()
.WithPluginProvider(selector.GetDefaultPluginTypeOnCurrentPlatformFor<IGraphicsPluginProvider>())
.WithPluginProvider(windowingProvider)
.WithPluginProvider(selector.GetDefaultPluginTypeOnCurrentPlatformFor<IResourceManagementPluginProvider>())
.WithPluginProvider(selector.GetDefaultPluginTypeOnCurrentPlatformFor<IInputPluginProvider>())
.InitialiseAndRegisterComponents();

std::shared_ptr<NovelRT::Ecs::Graphics::DefaultRenderingSystem> renderingSystem =
Expand Down
2 changes: 1 addition & 1 deletion src/NovelRT/Graphics/Vulkan/VulkanGraphicsDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ namespace NovelRT::Graphics::Vulkan
imagesKHRQuery);
}

ResizeGraphicsContexts(imageCount); // TODO: This making vulkan angry for some reason.
ResizeGraphicsContexts(imageCount);

std::vector<VkImage> swapChainImages = std::vector<VkImage>(imageCount);
imagesKHRQuery = vkGetSwapchainImagesKHR(device, vulkanSwapchain, &imageCount, swapChainImages.data());
Expand Down

0 comments on commit 609e507

Please sign in to comment.