mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
use GL_CLAMP_TO_EDGE instead of deprecated GL_CLAMP
This commit is contained in:
parent
77fb0cd1ab
commit
38100b8ed1
@ -1051,11 +1051,11 @@ void opengl_MakeWrapTypeCurrent(int handle, int map_type, int tn) {
|
||||
OpenGL_sets_this_frame[1]++;
|
||||
|
||||
if (gpu_state.cur_wrap_type == WT_CLAMP) {
|
||||
dglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
|
||||
dglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
|
||||
dglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
dglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
|
||||
} else if (gpu_state.cur_wrap_type == WT_WRAP_V) {
|
||||
dglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
|
||||
dglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
dglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
|
||||
} else {
|
||||
dglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
|
||||
|
Loading…
Reference in New Issue
Block a user