Commit 77e8ed38 authored by tenter's avatar tenter
Browse files

fix empty viewport

parent ae590afe
Pipeline #2715 failed with stage
in 66 minutes and 7 seconds
......@@ -398,10 +398,6 @@ void SubpixelSupersampling::endSubpixel(int i) {
glReadPixels(0, 0, width_, height_, texformat, GL_UNSIGNED_BYTE, &pixels[0]);
// composite
Vec2f offset = subpixelOffset(i);
// find group of subpixel in the increased resolution
Vec2i group = subpixelGroup(i);
......
......@@ -212,6 +212,13 @@ public:
int numSubpixels() const { return subpixels_; }
int width() const { return width_; }
int height() const { return height_; }
int resolutionIncrease() const { return resolutionIncrease_; }
float sampleDistance() const { return sampleDistance_; }
Vec2f subpixelOffset(int i) const;
......
......@@ -241,7 +241,13 @@ void PostProcessing::setupFBO( ACG::FBO* _dst, int _width, int _height, GLuint _
void PostProcessing::postProcess( int _viewerID, ACG::GLState* _glstate, const ACG::GLMatrixd& _modelview, const ACG::GLMatrixd& _proj1, const ACG::GLMatrixd& _proj2, bool _hwOpenGLStereo )
{
// disable multisample FBO
// # post processors in chain
const int numProcs = postProcessorManager().numActive(_viewerID);
if (!numProcs)
return;
// disable multisample FBO
if (sceneFBO_[0].getMultisamplingCount())
glDisable(GL_MULTISAMPLE);
......@@ -252,9 +258,6 @@ void PostProcessing::postProcess( int _viewerID, ACG::GLState* _glstate, const A
std::vector<const PostProcessorInput*> postProcInputVec;
postProcInputVec.push_back(&postProcInput);
// # post processors in chain
const int numProcs = postProcessorManager().numActive(_viewerID);
// # executions of postproc chain, one for each eye
int numChainExecs = stereoMode_ ? 2 : 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment