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

Method GL_MBind

client/src/main/java/jake2/client/render/fast/Image.java:157–168  ·  view source on GitHub ↗
(int target /* GLenum */, int texnum)

Source from the content-addressed store, hash-verified

155 }
156
157 void GL_MBind(int target /* GLenum */, int texnum) {
158 GL_SelectTexture(target);
159 if (target == TEXTURE0) {
160 if (gl_state.currenttextures[0] == texnum)
161 return;
162 }
163 else {
164 if (gl_state.currenttextures[1] == texnum)
165 return;
166 }
167 GL_Bind(texnum);
168 }
169
170 // glmode_t
171 static class glmode_t {

Callers 1

Calls 2

GL_SelectTextureMethod · 0.95
GL_BindMethod · 0.95

Tested by

no test coverage detected