version 1.4 | | version 1.5 |
---|
| | |
* Graphical routines for manipulating grs_bitmaps. | | * Graphical routines for manipulating grs_bitmaps. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.5 1999/10/07 02:27:14 donut |
| | * OGL includes to remove warnings |
| | * |
* Revision 1.4 1999/09/22 02:02:31 donut | | * Revision 1.4 1999/09/22 02:02:31 donut |
* ogl: gr_set_bitmap_data frees the texture rather than just resetting the gltexture flag | | * ogl: gr_set_bitmap_data frees the texture rather than just resetting the gltexture flag |
* | | * |
| | |
#include "bitmap.h" | | #include "bitmap.h" |
#include "error.h" | | #include "error.h" |
| | |
| | #ifdef OGL |
| | #include "ogl_init.h" |
| | #endif |
| | |
void build_colormap_good( ubyte * palette, ubyte * colormap, int * freq ); | | void build_colormap_good( ubyte * palette, ubyte * colormap, int * freq ); |
| | |
| | |
Win32_CreateTexture (bm); | | Win32_CreateTexture (bm); |
#endif | | #endif |
#ifdef OGL | | #ifdef OGL |
bm->gltexture=-1; | | bm->gltexture=NULL; |
#endif | | #endif |
| | |
// if (data != 0) | | // if (data != 0) |
| | |
bm->pvSurface = NULL; | | bm->pvSurface = NULL; |
#endif | | #endif |
#ifdef OGL | | #ifdef OGL |
bm->gltexture=-1; | | ogl_freebmtexture(bm); |
#endif | | #endif |
} | | } |
| | |