removed not needed code
This commit is contained in:
parent
a7076a7e11
commit
43786c80a9
10 changed files with 2 additions and 277 deletions
|
@ -158,24 +158,10 @@ void glopTexImage2D(GLContext *c,TGLParam *p)
|
|||
im->xsize=width;
|
||||
im->ysize=height;
|
||||
if (im->pixmap!=NULL) gl_free(im->pixmap);
|
||||
#if TGL_FEATURE_RENDER_BITS == 24
|
||||
im->pixmap=gl_malloc(width*height*3);
|
||||
if(im->pixmap) {
|
||||
memcpy(im->pixmap,pixels1,width*height*3);
|
||||
}
|
||||
#elif TGL_FEATURE_RENDER_BITS == 32
|
||||
im->pixmap=gl_malloc(width*height*4);
|
||||
if(im->pixmap) {
|
||||
gl_convertRGB_to_8A8R8G8B(im->pixmap,pixels1,width,height);
|
||||
}
|
||||
#elif TGL_FEATURE_RENDER_BITS == 16
|
||||
im->pixmap=gl_malloc(width*height*2);
|
||||
if(im->pixmap) {
|
||||
gl_convertRGB_to_5R6G5B((unsigned short *)im->pixmap,pixels1,width,height);
|
||||
}
|
||||
#else
|
||||
#error TODO
|
||||
#endif
|
||||
if (do_free) gl_free(pixels1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue