Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ArjunNair/egui_sdl2_gl
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjunNair committed Nov 4, 2023
2 parents 4fa327c + 18a5edc commit 4b4ee25
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,11 @@ impl Painter {
{
match primitive {
Primitive::Mesh(mesh) => {
if let Some(Texture {gl_id: Some(texture_gl_id), .. }) = self.textures.get(&mesh.texture_id) {
//if let Some(texture_gl_id) = gl_id
if let Some(Texture {
gl_id: Some(texture_gl_id),
..
}) = self.textures.get(&mesh.texture_id)
{
{
gl::BindTexture(gl::TEXTURE_2D, *texture_gl_id);

Expand Down

0 comments on commit 4b4ee25

Please sign in to comment.