forked from ShuriZma/suyu
1
0
Fork 0

GL: Create the sampler objects when starting up the GL rasterizer.

This commit is contained in:
Subv 2018-03-26 21:44:03 -05:00 committed by James Rowe
parent ca96b04a0c
commit c28ed85875
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,12 @@ RasterizerOpenGL::RasterizerOpenGL() {
has_ARB_separate_shader_objects = false; has_ARB_separate_shader_objects = false;
has_ARB_vertex_attrib_binding = false; has_ARB_vertex_attrib_binding = false;
// Create sampler objects
for (size_t i = 0; i < texture_samplers.size(); ++i) {
texture_samplers[i].Create();
state.texture_units[i].sampler = texture_samplers[i].sampler.handle;
}
GLint ext_num; GLint ext_num;
glGetIntegerv(GL_NUM_EXTENSIONS, &ext_num); glGetIntegerv(GL_NUM_EXTENSIONS, &ext_num);
for (GLint i = 0; i < ext_num; i++) { for (GLint i = 0; i < ext_num; i++) {