(int texnum)
| 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); |
no test coverage detected