From a8c807badfa83c2df944481836ae4998bef572ef Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Mon, 7 Nov 2005 15:37:18 +0000 Subject: [PATCH] make super transparent textures have alpha --- ChangeLog | 4 ++++ arch/ogl/ogl.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f52a7fad..49b8b24e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-11-07 Chris Taylor + + * arch/ogl/ogl.c: make super transparent textures have alpha + 2005-08-13 Chris Taylor * main/gauges.c: draw all gauges properly when using the cockpit diff --git a/arch/ogl/ogl.c b/arch/ogl/ogl.c index 7c31b2b6..46773736 100644 --- a/arch/ogl/ogl.c +++ b/arch/ogl/ogl.c @@ -1,4 +1,4 @@ -/* $Id: ogl.c,v 1.37 2005-08-07 09:58:33 chris Exp $ */ +/* $Id: ogl.c,v 1.38 2005-11-07 15:36:46 chris Exp $ */ /* * * Graphics support functions for OpenGL. @@ -1917,7 +1917,7 @@ void ogl_loadbmtexture_f(grs_bitmap *bm, int flags) } #endif if (bm->gltexture == NULL){ - ogl_init_texture(bm->gltexture = ogl_get_free_texture(), bm->bm_w, bm->bm_h, flags | ((bm->bm_flags & BM_FLAG_TRANSPARENT) ? OGL_FLAG_ALPHA : 0)); + ogl_init_texture(bm->gltexture = ogl_get_free_texture(), bm->bm_w, bm->bm_h, flags | ((bm->bm_flags & (BM_FLAG_TRANSPARENT | BM_FLAG_SUPER_TRANSPARENT))? OGL_FLAG_ALPHA : 0)); } else { if (bm->gltexture->handle>0) -- 2.39.2