update
This commit is contained in:
Submodule src/lib/djstdlib updated: cbedadd36e...9b772e2046
@@ -292,11 +292,11 @@ void framebufferSizeCallback(GLFWwindow *window, int width, int height) {
|
||||
|
||||
GLFWwindow *initWindowAndGL(uint32 windowWidth, uint32 windowHeight) {
|
||||
#ifdef OS_LINUX
|
||||
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11);
|
||||
//glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11);
|
||||
#endif
|
||||
|
||||
glfwInit();
|
||||
glfwWindowHintString(GLFW_WAYLAND_APP_ID, "Somaesque");
|
||||
//glfwWindowHintString(GLFW_WAYLAND_APP_ID, "Somaesque");
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
@@ -331,10 +331,6 @@ GLFWwindow *initWindowAndGL(uint32 windowWidth, uint32 windowHeight) {
|
||||
glfwSetWindowSize(window, windowWidth, windowHeight);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
||||
glfwSetWindowAttrib(window, GLFW_DECORATED, GLFW_FALSE);
|
||||
glfwSetWindowAttrib(window, GLFW_DECORATED, GLFW_TRUE);
|
||||
glfwSetWindowAttrib(window, GLFW_DECORATED, GLFW_FALSE);
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,8 @@ void removeEntity(Scene *s, uint32 entityHandle) {
|
||||
if (parentNode != NULL) {
|
||||
for (EachIn(parentNode->children, i)) {
|
||||
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;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user