MCPcopy Create free account
hub / github.com/demoth/jake2 / GL_Bind

Method GL_Bind

client/src/main/java/jake2/client/render/fast/Image.java:144–155  ·  view source on GitHub ↗
(int texnum)

Source from the content-addressed store, hash-verified

142 }
143
144 void GL_Bind(int texnum) {
145
146 if ((gl_nobind.value != 0) && (draw_chars != null)) {
147 // performance evaluation option
148 texnum = draw_chars.texnum;
149 }
150 if (gl_state.currenttextures[gl_state.currenttmu] == texnum)
151 return;
152
153 gl_state.currenttextures[gl_state.currenttmu] = texnum;
154 gl.glBindTexture(GL_TEXTURE_2D, texnum);
155 }
156
157 void GL_MBind(int target /* GLenum */, int texnum) {
158 GL_SelectTexture(target);

Callers 4

GL_MBindMethod · 0.95
GL_TextureModeMethod · 0.95
Scrap_UploadMethod · 0.95
GL_LoadPicMethod · 0.95

Calls 1

glBindTextureMethod · 0.65

Tested by

no test coverage detected