TINYGL: Consistently consider Texture::handle as unsigned.

Texture handles are unsigned integers everywhere else.
This commit is contained in:
Vincent Pelletier 2016-07-17 13:25:23 +00:00
parent 83f4434bff
commit 95cc5127e0
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@
namespace TinyGL { namespace TinyGL {
static GLTexture *find_texture(GLContext *c, int h) { static GLTexture *find_texture(GLContext *c, unsigned int h) {
GLTexture *t; GLTexture *t;
t = c->shared_state.texture_hash_table[h % TEXTURE_HASH_TABLE_SIZE]; t = c->shared_state.texture_hash_table[h % TEXTURE_HASH_TABLE_SIZE];
@ -279,7 +279,7 @@ void glopPixelStore(GLContext *, GLParam *p) {
void tglGenTextures(int n, unsigned int *textures) { void tglGenTextures(int n, unsigned int *textures) {
TinyGL::GLContext *c = TinyGL::gl_get_context(); TinyGL::GLContext *c = TinyGL::gl_get_context();
int max; unsigned int max;
TinyGL::GLTexture *t; TinyGL::GLTexture *t;
max = 0; max = 0;

View File

@ -181,7 +181,7 @@ struct GLImage {
struct GLTexture { struct GLTexture {
GLImage images[MAX_TEXTURE_LEVELS]; GLImage images[MAX_TEXTURE_LEVELS];
int handle; unsigned int handle;
int versionNumber; int versionNumber;
struct GLTexture *next, *prev; struct GLTexture *next, *prev;
bool disposed; bool disposed;