mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-22 20:11:40 +00:00
OpenGL1: Use glGenTextures instead of hardcoded values
It's the proper way to use the OpenGL API. It's already done in the OpenGL2 renderer.
This commit is contained in:
parent
d28e667e46
commit
b48d902672
1 changed files with 1 additions and 1 deletions
|
@ -861,7 +861,7 @@ image_t *R_CreateImage( const char *name, byte *pic, int width, int height,
|
||||||
}
|
}
|
||||||
|
|
||||||
image = tr.images[tr.numImages] = ri.Hunk_Alloc( sizeof( image_t ), h_low );
|
image = tr.images[tr.numImages] = ri.Hunk_Alloc( sizeof( image_t ), h_low );
|
||||||
image->texnum = 1024 + tr.numImages;
|
qglGenTextures(1, &image->texnum);
|
||||||
tr.numImages++;
|
tr.numImages++;
|
||||||
|
|
||||||
image->type = type;
|
image->type = type;
|
||||||
|
|
Loading…
Reference in a new issue