mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
fixing put pixel, adding scene change checker
This commit is contained in:
@@ -19,8 +19,12 @@ namespace mlx
|
||||
#endif
|
||||
texture.Clear(VK_NULL_HANDLE, Vec4f{ 0.0f });
|
||||
}
|
||||
m_textures.back().SetPixel(x, y, color);
|
||||
return (insert_new_texture ? &m_textures.back() : nullptr);
|
||||
if(!m_textures.empty())
|
||||
{
|
||||
m_textures.back().SetPixel(x, y, color);
|
||||
return (insert_new_texture ? &m_textures.back() : nullptr);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void PutPixelManager::ResetRenderData()
|
||||
|
||||
Reference in New Issue
Block a user