mirror of
https://gitlab.com/splashmapper/splash.git
synced 2026-06-16 12:33:50 +02:00
Cleanup, a previous suggestion had been lost in merge
This commit is contained in:
+1
-1
@@ -688,7 +688,7 @@ void Image_V4L2::registerAttributes()
|
||||
if (index != -1) // Only the index is specified
|
||||
_devicePath = "/dev/video" + to_string(index);
|
||||
else if (path.empty() || path[0] != '/') // No path specified, or an invalid one
|
||||
_devicePath = "/dev/video0";
|
||||
_devicePath = "";
|
||||
else
|
||||
_devicePath = path;
|
||||
|
||||
|
||||
+2
-2
@@ -655,9 +655,9 @@ shared_ptr<GlWindow> Scene::getNewSharedWindow(string name)
|
||||
nvResult &= nvGLJoinSwapGroup(glfwGetX11Display(), glfwGetX11Window(window), 1);
|
||||
nvResult &= nvGLBindSwapBarrier(glfwGetX11Display(), 1, 1);
|
||||
if (nvResult)
|
||||
Log::get() << Log::MESSAGE << "Scene::" << __FUNCTION__ << " - Window " << name << " successfully joined the NV swap group" << Log::endl;
|
||||
Log::get() << Log::MESSAGE << "Scene::" << __FUNCTION__ << " - Window " << windowName << " successfully joined the NV swap group" << Log::endl;
|
||||
else
|
||||
Log::get() << Log::MESSAGE << "Scene::" << __FUNCTION__ << " - Window " << name << " couldn't join the NV swap group" << Log::endl;
|
||||
Log::get() << Log::MESSAGE << "Scene::" << __FUNCTION__ << " - Window " << windowName << " couldn't join the NV swap group" << Log::endl;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user