Skip to content

Commit

Permalink
opengl: texture: fix level parameter not being used when attaching to…
Browse files Browse the repository at this point in the history
… a framebuffer
  • Loading branch information
Adspartan committed Jan 7, 2025
1 parent 5b170ea commit 2142ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opengl/texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace opengl
gl.genTextures(1, &_id);
}

gl.framebufferTexture2D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_2D, _id, 0);
gl.framebufferTexture2D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_2D, _id, level);
}

size_t texture::current_active_texture = -1;
Expand Down

0 comments on commit 2142ce3

Please sign in to comment.