Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: vid_restart with external textures (windowed to/from fullscreen) #28

Closed
timbergeron opened this issue Jul 15, 2022 · 3 comments
Closed

Comments

@timbergeron
Copy link

version: latest release

After a toggle between window/fullscreen which uses vid_restart external textures with _glow or _luma overbright textures (see below images)

tested using QRP textures

spasm0001
spasm0000

@sezero
Copy link
Owner

sezero commented Jul 15, 2022

@ericwa, @andrei-drexler: any insight?

@andrei-drexler
Copy link
Contributor

This should do it:

diff --git a/Quake/gl_model.c b/Quake/gl_model.c
index fe8ac6a..001f38c 100644
--- a/Quake/gl_model.c
+++ b/Quake/gl_model.c
@@ -612,7 +612,7 @@ void Mod_LoadTextures (lump_t *l)
 
 					if (data)
 						tx->fullbright = TexMgr_LoadImage (loadmodel, filename2, fwidth, fheight,
-							SRC_RGBA, data, filename, 0, TEXPREF_MIPMAP | extraflags );
+							SRC_RGBA, data, filename2, 0, TEXPREF_MIPMAP | extraflags );
 				}
 				else //use the texture from the bsp file
 				{

sezero added a commit that referenced this issue Jul 18, 2022
@sezero
Copy link
Owner

sezero commented Jul 18, 2022

Oh boy, it's always been there I guess. Patch is in, thanks!

@sezero sezero closed this as completed Jul 18, 2022
alexey-lysiuk pushed a commit to alexey-lysiuk/quakespasm-exp that referenced this issue Aug 6, 2022
Patch from Andrei Drexler.
Reference issue: sezero/quakespasm#28.

(cherry picked from commit ec57aa9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants