Added icons and fixed audio manger crash
This commit is contained in:
@@ -115,12 +115,18 @@ namespace Nuake {
|
||||
|
||||
{ // Create window
|
||||
m_Window = glfwCreateWindow(m_Width, m_Height, m_Title.c_str(), NULL, NULL);
|
||||
|
||||
if (!m_Window)
|
||||
{
|
||||
Logger::Log("Window creation failed.", CRITICAL);
|
||||
return -1;
|
||||
}
|
||||
|
||||
GLFWimage images[1];
|
||||
images[0].pixels = stbi_load("resources/Images/nuake-logo.png", &images[0].width, &images[0].height, 0, 4); //rgba channels
|
||||
glfwSetWindowIcon(m_Window, 1, images);
|
||||
stbi_image_free(images[0].pixels);
|
||||
|
||||
glfwMakeContextCurrent(m_Window);
|
||||
|
||||
Logger::Log((char*)glGetString(GL_VERSION));
|
||||
|
||||
Reference in New Issue
Block a user