"Fix" alpha blending in framebuffer
This commit is contained in:
parent
355aa1d62d
commit
b6f053466d
|
@ -111,6 +111,8 @@ void initRenderer(GLFWwindow* window, int windowWidth, int windowHeight) {
|
|||
GLenum drawBuffers[] = {GL_COLOR_ATTACHMENT0};
|
||||
glDrawBuffers(1, drawBuffers);
|
||||
|
||||
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
if(glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) {
|
||||
std::cerr << (glCheckFramebufferStatus(GL_FRAMEBUFFER)) << endl;
|
||||
throw 1;
|
||||
|
|
Loading…
Reference in New Issue