Skip to content

Commit 2142ce3

Browse files
committed
opengl: texture: fix level parameter not being used when attaching to a framebuffer
1 parent 5b170ea commit 2142ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opengl/texture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace opengl
4949
gl.genTextures(1, &_id);
5050
}
5151

52-
gl.framebufferTexture2D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_2D, _id, 0);
52+
gl.framebufferTexture2D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_2D, _id, level);
5353
}
5454

5555
size_t texture::current_active_texture = -1;

0 commit comments

Comments
 (0)