fixing projection issue

This commit is contained in:
Kbz-8
2024-10-17 15:37:39 +02:00
parent cf773b586e
commit 74dd8a01e2
13 changed files with 117 additions and 57 deletions

View File

@@ -36,6 +36,7 @@ namespace mlx
if(f_loop_hook)
f_loop_hook(p_param);
#pragma omp parallel for
for(auto& gs : m_graphics)
{
if(gs)
@@ -80,6 +81,7 @@ namespace mlx
Error("trying to destroy a texture that has already been destroyed");
else
texture->Destroy();
#pragma omp parallel for
for(auto& gs : m_graphics)
{
if(gs)

View File

@@ -6,6 +6,7 @@ namespace mlx
{
void EventBus::Send(const std::string& listener_name, const EventBase& event)
{
#pragma omp parallel for
for(const EventListener& listener : s_listeners)
{
if(listener.GetName() == listener_name)
@@ -19,6 +20,7 @@ namespace mlx
void EventBus::SendBroadcast(const EventBase& event)
{
#pragma omp parallel for
for(const EventListener& listener : s_listeners)
listener.Call(event);
}