(int target /* GLenum */, int texnum)
| 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 { |
no test coverage detected