I have an input texture in a certain resolution, and a target texture (attached as GL_COLOR_ATTACHMENT0
) which is in a bigger resolution. I am using glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
to upscale the input and draw some stuff on the target.
I have a buffer which is in the same resolution as my input that I would like to use as GL_STENCIL_ATTACHMENT
.
Is it possible to attach it somehow without getting an error of GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
?