Skip to content

Commit

Permalink
started working on gl3 rasters
Browse files Browse the repository at this point in the history
  • Loading branch information
aap committed Apr 27, 2020
1 parent 4db08e1 commit eb71ca2
Show file tree
Hide file tree
Showing 8 changed files with 295 additions and 59 deletions.
4 changes: 3 additions & 1 deletion src/gl/gl3device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,13 @@ setActiveTexture(int32 n)
}
}

static void
uint32
bindTexture(uint32 texid)
{
uint32 prev = boundTexture[activeTexture];
boundTexture[activeTexture] = texid;
glBindTexture(GL_TEXTURE_2D, texid);
return prev;
}

// TODO: support mipmaps
Expand Down
Loading

0 comments on commit eb71ca2

Please sign in to comment.