mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
[models] Fix black models with fullbrights in GL
I had missed the breakage when I got vulkan alias model skins working.
This commit is contained in:
parent
f02b35a20c
commit
6969adf02c
1 changed files with 7 additions and 0 deletions
|
@ -55,6 +55,13 @@ Mod_Fullbright (byte *skin, int width, int height, const char *name)
|
|||
|
||||
// Check for fullbright pixels
|
||||
if (Mod_CalcFullbright (skin, ptexels, pixels)) {
|
||||
//FIXME black should be transparent for fullbrights (or just fix
|
||||
//fullbright rendering in gl)
|
||||
for (int i = 0; i < pixels; i++) {
|
||||
if (!ptexels[i]) {
|
||||
ptexels[i] = 255;
|
||||
}
|
||||
}
|
||||
Sys_MaskPrintf (SYS_DEV, "FB Model ID: '%s'\n", name);
|
||||
texnum = GL_LoadTexture (name, width, height, ptexels, true, true, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue