Skip to content

Commit

Permalink
yes (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbz-8 authored Nov 22, 2024
2 parents 142ea2d + 4448479 commit 89b1ae4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/platform/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 17:36:44 by maldavid #+# #+# */
/* Updated: 2024/01/16 07:59:21 by maldavid ### ########.fr */
/* Updated: 2024/10/27 00:31:39 by kiroussa ### ########.fr */
/* */
/* ************************************************************************** */

#include <platform/window.h>
#include <core/errors.h>
#include <utils/icon_mlx.h>

#ifndef MLX_WINDOW_CREATE_FLAGS
#define MLX_WINDOW_CREATE_FLAGS SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN
#endif // MLX_WINDOW_CREATE_FLAGS

namespace mlx
{
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
Expand All @@ -32,7 +36,7 @@ namespace mlx
{
if(title.find("vvaas") != std::string::npos)
core::error::report(e_kind::message, "vvaas est mauvais");
_win = SDL_CreateWindow(title.c_str(), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, w, h, SDL_WINDOW_VULKAN | SDL_WINDOW_SHOWN);
_win = SDL_CreateWindow(title.c_str(), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, w, h, MLX_WINDOW_CREATE_FLAGS);
if(!_win)
core::error::report(e_kind::fatal_error, std::string("unable to open a new window, ") + SDL_GetError());
_id = SDL_GetWindowID(_win);
Expand Down
26 changes: 26 additions & 0 deletions valgrind.supp
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,29 @@
fun:_dbus*
...
}
{
dbus_memory_leak
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
obj:/usr/lib/x86_64-linux-gnu/libdbus-1.so.*
...
fun:dbus*
...
}
{
name
Memcheck:Leak
fun:*
...
obj:*libnvidia-glcore.so*
...
}
{
name
Memcheck:Leak
fun:*
...
obj:*libdbus-1.so*
...
}

0 comments on commit 89b1ae4

Please sign in to comment.