This commit is contained in:
Daniel Ledda
2025-11-27 23:50:54 +01:00
parent a7d03deba6
commit e25004f59c
3 changed files with 5 additions and 8 deletions

View File

@@ -292,11 +292,11 @@ void framebufferSizeCallback(GLFWwindow *window, int width, int height) {
GLFWwindow *initWindowAndGL(uint32 windowWidth, uint32 windowHeight) { GLFWwindow *initWindowAndGL(uint32 windowWidth, uint32 windowHeight) {
#ifdef OS_LINUX #ifdef OS_LINUX
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11); //glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11);
#endif #endif
glfwInit(); glfwInit();
glfwWindowHintString(GLFW_WAYLAND_APP_ID, "Somaesque"); //glfwWindowHintString(GLFW_WAYLAND_APP_ID, "Somaesque");
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
@@ -331,10 +331,6 @@ GLFWwindow *initWindowAndGL(uint32 windowWidth, uint32 windowHeight) {
glfwSetWindowSize(window, windowWidth, windowHeight); glfwSetWindowSize(window, windowWidth, windowHeight);
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
glfwSetWindowAttrib(window, GLFW_DECORATED, GLFW_FALSE);
glfwSetWindowAttrib(window, GLFW_DECORATED, GLFW_TRUE);
glfwSetWindowAttrib(window, GLFW_DECORATED, GLFW_FALSE);
return window; return window;
} }

View File

@@ -91,7 +91,8 @@ void removeEntity(Scene *s, uint32 entityHandle) {
if (parentNode != NULL) { if (parentNode != NULL) {
for (EachIn(parentNode->children, i)) { for (EachIn(parentNode->children, i)) {
if (parentNode->children.data[i] == entity->graphNodeHandle) { if (parentNode->children.data[i] == entity->graphNodeHandle) {
ListRemove(&parentNode->children, i); memcpy(parentNode->children.data + i, parentNode->children.data + i + 1, parentNode->children.length - i - 1);
//ListRemove(&parentNode->children, i);
graphNode->parentHandle = 0; graphNode->parentHandle = 0;
break; break;
} }