Change where txr.alpha is set
This commit is contained in:
parent
e97dd466aa
commit
e61369674c
|
@ -123,10 +123,8 @@ static int _calcPVRBlendFactor(GLenum factor) {
|
|||
static void _updatePVRBlend(pvr_poly_cxt_t* context) {
|
||||
if(BLEND_ENABLED) {
|
||||
context->gen.alpha = PVR_ALPHA_ENABLE;
|
||||
context->txr.alpha = PVR_TXRALPHA_ENABLE;
|
||||
} else {
|
||||
context->gen.alpha = PVR_ALPHA_DISABLE;
|
||||
context->txr.alpha = PVR_TXRALPHA_DISABLE;
|
||||
}
|
||||
|
||||
context->blend.src = _calcPVRBlendFactor(BLEND_SFACTOR);
|
||||
|
@ -166,6 +164,8 @@ void _glUpdatePVRTextureContext(pvr_poly_cxt_t* context, GLshort textureUnit) {
|
|||
return;
|
||||
}
|
||||
|
||||
context->txr.alpha = (BLEND_ENABLED) ? PVR_TXRALPHA_ENABLE : PVR_TXRALPHA_DISABLE;
|
||||
|
||||
GLuint filter = PVR_FILTER_NEAREST;
|
||||
GLboolean enableMipmaps = GL_FALSE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user