1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

fix typo in bloom.md

对照原文,此段代码变量名应为pingpongBuffer
https://learnopengl.com/Advanced-Lighting/Bloom
This commit is contained in:
Fu Zhen
2018-02-21 23:31:34 +08:00
committed by GitHub
parent 1ca912c2ef
commit 3fb3d39dcb

View File

@@ -179,7 +179,7 @@ void main()
GLuint pingpongFBO[2];
GLuint pingpongBuffer[2];
glGenFramebuffers(2, pingpongFBO);
glGenTextures(2, pingpongColorbuffers);
glGenTextures(2, pingpongBuffer);
for (GLuint i = 0; i < 2; i++)
{
glBindFramebuffer(GL_FRAMEBUFFER, pingpongFBO[i]);