|
@@ -202,6 +202,8 @@ int main (int argc, char* argv[])
|
|
|
|
|
|
|
|
// get the real framebuffer size
|
|
// get the real framebuffer size
|
|
|
glfwGetFramebufferSize (window, &windowWidth, &windowHeight);
|
|
glfwGetFramebufferSize (window, &windowWidth, &windowHeight);
|
|
|
|
|
+ // set the default viewport
|
|
|
|
|
+ context->setDefaultViewport ({0, 0, windowWidth, windowHeight});
|
|
|
|
|
|
|
|
if (glewInit () != GLEW_OK)
|
|
if (glewInit () != GLEW_OK)
|
|
|
{
|
|
{
|
|
@@ -210,6 +212,7 @@ int main (int argc, char* argv[])
|
|
|
return 3;
|
|
return 3;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
if (project->getType () == "scene")
|
|
if (project->getType () == "scene")
|
|
|
{
|
|
{
|
|
|
WallpaperEngine::Core::CScene* scene = project->getWallpaper ()->as <WallpaperEngine::Core::CScene> ();
|
|
WallpaperEngine::Core::CScene* scene = project->getWallpaper ()->as <WallpaperEngine::Core::CScene> ();
|
|
@@ -264,6 +267,10 @@ int main (int argc, char* argv[])
|
|
|
|
|
|
|
|
while (glfwWindowShouldClose (window) == 0)
|
|
while (glfwWindowShouldClose (window) == 0)
|
|
|
{
|
|
{
|
|
|
|
|
+ // get the real framebuffer size
|
|
|
|
|
+ glfwGetFramebufferSize (window, &windowWidth, &windowHeight);
|
|
|
|
|
+ // set the default viewport
|
|
|
|
|
+ context->setDefaultViewport ({0, 0, windowWidth, windowHeight});
|
|
|
// calculate the current time value
|
|
// calculate the current time value
|
|
|
g_Time = (float) glfwGetTime ();
|
|
g_Time = (float) glfwGetTime ();
|
|
|
// get the start time of the frame
|
|
// get the start time of the frame
|