context(wnd, opts)
{ }
+Graphics::GLOptions OpenGLDevice::create_default_options()
+{
+ Graphics::GLOptions opts;
+ opts.gl_version_major = Graphics::GLOptions::LATEST_VERSION;
+ opts.core_profile = true;
+ return opts;
+}
+
void OpenGLDevice::fill_info()
{
DeviceInfo &info = static_cast<Device *>(this)->info;
feat.ext_texture_array = EXT_texture_array;
feat.uniform_binding_range = lim.max_uniform_bindings;
feat.texture_binding_range = lim.max_texture_bindings;
+
+ state.bound_tex_targets.resize(lim.max_texture_bindings);
+ state.bound_uniform_blocks.resize(lim.max_uniform_bindings);
}
} // namespace GL