Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RENDERER: Fix opengl1/OpenGL2 crash in levelshot command
Setting packAlign was removed [1] and later set to 0 [2] and this caused PADP( ..., 0 ) to return NULL which later gets passed to R_GammaCorrect() and crashed. It seems I left packAlign in my PNG/levelshot changes [3] even though it's not needed in R_LevelShot(). Set packAlign to 1 which is single byte alignment and doesn't allocate additional memory. PADP( ..., 1 ) returns the same address and it doesn't crash later. 1: b514a01 2: 688f4f5 3: ioquake/ioq3#262
- Loading branch information