mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
fighting the crash everywhere: random crash at random location. Changing
computer might be better idea than changing the code indefinitely...
This commit is contained in:
5
View.cpp
5
View.cpp
@@ -541,7 +541,7 @@ uint MixingView::textureMixingQuadratic()
|
||||
|
||||
RenderView::RenderView() : View(RENDERING), frame_buffer_(nullptr), fading_overlay_(nullptr)
|
||||
{
|
||||
// set resolution to settings or default
|
||||
// set resolution to settings default
|
||||
setResolution();
|
||||
}
|
||||
|
||||
@@ -571,7 +571,8 @@ float RenderView::fading() const
|
||||
|
||||
void RenderView::setResolution(glm::vec3 resolution)
|
||||
{
|
||||
if (resolution.x < 128.f || resolution.y < 128.f)
|
||||
// use default resolution if invalid resolution is given (default behavior)
|
||||
if (resolution.x < 2.f || resolution.y < 2.f)
|
||||
resolution = FrameBuffer::getResolutionFromParameters(Settings::application.render.ratio, Settings::application.render.res);
|
||||
|
||||
// do we need to change resolution ?
|
||||
|
||||
Reference in New Issue
Block a user