修复空指针异常
This commit is contained in:
parent
649eaa6ee6
commit
c858826b34
|
|
@ -51,6 +51,8 @@ void e2d::Game::start()
|
|||
// ĎÔĘž´°żÚ
|
||||
::ShowWindow(hWnd, SW_SHOWNORMAL);
|
||||
::UpdateWindow(hWnd);
|
||||
|
||||
SceneManager::getInstance()->update();
|
||||
Window::getInstance()->poll();
|
||||
|
||||
// żŞĘźÓÎϡ
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ void e2d::Renderer::_renderFps()
|
|||
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
_renderTarget->SetTransform(D2D1::Matrix3x2F::Identity());
|
||||
_solidBrush->SetOpacity(1.0f);
|
||||
this->getRenderTarget()->SetTransform(D2D1::Matrix3x2F::Identity());
|
||||
this->getSolidColorBrush()->SetOpacity(1.0f);
|
||||
|
||||
auto textRenderer = this->getTextRenderer();
|
||||
textRenderer->SetTextStyle(
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
</ClCompile>
|
||||
|
|
|
|||
Loading…
Reference in New Issue