Fix emscripten build
This commit is contained in:
@@ -40,6 +40,7 @@ void TApp::Process() {
|
||||
#endif
|
||||
}
|
||||
|
||||
RenderManager_->Reset();
|
||||
EntityManager_->Run();
|
||||
RenderManager_->Run();
|
||||
}
|
||||
|
||||
@@ -290,7 +290,6 @@ void TRenderManager::Run() {
|
||||
SDL_SetRenderTarget(Renderer_, NULL);
|
||||
SDL_RenderCopy(Renderer_, ScreenTexture_, NULL, &destinationRect);
|
||||
SDL_RenderPresent(Renderer_);
|
||||
Reset();
|
||||
}
|
||||
|
||||
bool TRenderManager::Input(SDL_Event* event) {
|
||||
|
||||
+1
-3
@@ -91,14 +91,12 @@ public:
|
||||
std::uint8_t DefaultLightGreen() const;
|
||||
std::uint8_t DefaultLightBlue() const;
|
||||
|
||||
void Reset();
|
||||
void Run();
|
||||
bool Input(SDL_Event* event);
|
||||
bool IsRunning();
|
||||
void Shutdown();
|
||||
|
||||
private:
|
||||
void Reset();
|
||||
|
||||
private:
|
||||
SDL_Window* Window_;
|
||||
SDL_Renderer* Renderer_;
|
||||
|
||||
Reference in New Issue
Block a user