mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
TINYGL: Consistently consider Texture::handle as unsigned.
Texture handles are unsigned integers everywhere else.
This commit is contained in:
parent
83f4434bff
commit
95cc5127e0
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user