View Full Version : glFramebufferTexture2D mipLevel problem

04-27-2014, 01:10 AM

So I ran into a problem when trying to render to a certain miplevel with my framebuffer.
For some strange reason it writes to 3 levels below the mipLevel I choose. for example if I type 5 into miplevel I get my result in level 2 of my texture. Could anyone think of a reason as to why this would happen?

I get no errors with my framebuffer and no glErrors, only that I get results in the wrong miplevel. I could just write mipLevel + 3 but I'd rather find the solution as to why this is happening.

04-28-2014, 06:50 AM
Nevermind. Turns out I was simply using the "texture" sampler function instead of "textureLod" in the shader which caused the strange results.