message: Expose maximum texture size as a capability.
diff: @@ -95,6 +95,9 @@ pub struct Capabilities {
  /// `None` if the extension is not supported by the hardware.
  pub max_texture_max_anisotropy: Option<gl::types::GLfloat>,
  + /// Maximum size of a texture (i.e. GL_MAX_TEXTURE_SIZE)
  + pub max_texture_size: gl::types::GLint,
  +
  /// Maximum size of a buffer texture. `None` if this is not supported.
  pub max_texture_buffer_size: Option<gl::types::GLint>,
  @@ -407,6 +410,12 @@ pub unsafe fn get_capabilities(gl: &gl::Gl, version: &Version, extensions: &Exte
  })
  },
  + max_texture_size: {
  + let mut val = 0;
  + gl.GetIntegerv(gl::MAX_TEXTURE_SIZE, &mut val);
  + val
  + },
  +
  max_texture_buffer_size: {
  if version >= &Version(Api::Gl, 3, 0) || extensions.gl_arb_texture_buffer_object ||
  extensions.gl_ext_texture_buffer_object || extensions.gl_oes_texture_buffer ||
  