Removed extra whitespace.
#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
#define GL_ANY_SAMPLES_PASSED 0x8C2F
+#define GL_TEXTURE_EXTERNAL_OES 0x8D65
#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
#define GL_SAMPLER_BINDING 0x8919
#define GL_RGB10_A2UI 0x906F
CHECK_GL_ERROR(_orig_fastpath_glActiveTexture(GL_TEXTURE0 + i))
CHECK_GL_ERROR(_orig_fastpath_glBindTexture(GL_TEXTURE_CUBE_MAP, newctx->gl_tex_cube_state[i]))
}
+ STATE_COMPARE(gl_tex_external_oes_state[i])
+ {
+ CHECK_GL_ERROR(_orig_fastpath_glActiveTexture(GL_TEXTURE0 + i))
+ CHECK_GL_ERROR(_orig_fastpath_glBindTexture(GL_TEXTURE_EXTERNAL_OES, newctx->gl_tex_external_oes_state[i]))
+ }
}
// Restore active texture
#define _TEX_FLAG1_BIT_gl_tex_3d_state FLAG_BIT_3
#define _TEX_FLAG1_BIT_gl_tex_2d_array_state FLAG_BIT_4
#define _TEX_FLAG1_BIT_gl_tex_cube_state FLAG_BIT_5
+#define _TEX_FLAG1_BIT_gl_tex_external_oes_state FLAG_BIT_6
unsigned char _blend_flag;
#define _BLEND_FLAG_BIT_gl_blend_color FLAG_BIT_0
case GL_TEXTURE_CUBE_MAP:
STATE_PROC(gl_tex_cube_state, _tex_flag1, _TEX_FLAG1_BIT);
break;
+ case GL_TEXTURE_EXTERNAL_OES:
+ STATE_PROC(gl_tex_external_oes_state, _tex_flag1, _TEX_FLAG1_BIT);
+ break;
default:
_set_gl_error(GL_INVALID_ENUM);
break;
cur_gctx->gl_tex_2d_array_state[j] = 0;
if (cur_gctx->gl_tex_cube_state[j] == objid_array[i])
cur_gctx->gl_tex_cube_state[j] = 0;
+ if (cur_gctx->gl_tex_external_oes_state[j] == objid_array[i])
+ cur_gctx->gl_tex_external_oes_state[j] = 0;
}
current = current->next;
case GL_TEXTURE_CUBE_MAP:
current_ctx->gl_tex_cube_state[tex_idx] = -1;
break;
+ case GL_TEXTURE_EXTERNAL_OES:
+ current_ctx->gl_tex_external_oes_state[tex_idx] = -1;
+ break;
default:
_set_gl_error(GL_INVALID_ENUM);
goto finish;
GLUE_STATE(GLuint, gl_tex_cube_state, INITIAL_CTX->gl_num_tex_units[0], MAX_TEXTURE_UNITS,
SET_N(INITIAL_CTX->gl_num_tex_units[0], 1, SET_1(0)),
_state_get_texture_states(GL_TEXTURE_BINDING_CUBE_MAP, (GLint *)value);)
+GLUE_STATE(GLuint, gl_tex_external_oes_state, INITIAL_CTX->gl_num_tex_units[0], MAX_TEXTURE_UNITS,
+ SET_N(INITIAL_CTX->gl_num_tex_units[0], 1, SET_1(0)),
+ _state_get_texture_states(GL_TEXTURE_EXTERNAL_OES, (GLint *)value);)
GLUE_STATE(GLenum, gl_active_texture, 1, 1, SET_1(GL_TEXTURE0), _sym_glGetIntegerv(GL_ACTIVE_TEXTURE, (GLint *)value))
GLUE_STATE(GLenum, gl_generate_mipmap_hint, 1, 1, SET_1(GL_DONT_CARE), _sym_glGetIntegerv(GL_GENERATE_MIPMAP_HINT, (GLint *)value))