Skip to content

Latest commit

 

History

History
352 lines (249 loc) · 17.1 KB

CHANGELOG.md

File metadata and controls

352 lines (249 loc) · 17.1 KB

Unreleased

  • Add PossiblyCurrentContext::make_not_current_in_place(&self) for when Send capability of NotCurrentContext is not required.
  • Add NotCurrentContext::make_current_surfaceless(self) and PossiblyCurrentContext::make_current_surfaceless(&self) in the Cgl implementation to allow the use of surfaceless contexts on MacOS.

Version 0.32.1

  • Fixed EGL's Device::query_devices() being too strict about required extensions.
  • Fixed crash in EglGetProcAddress on Win32-x86 platform due to wrong calling convention.
  • Fixed EGL's Display::device() always returning an error due to invalid pointer-argument passing inside.
  • Fixed EGL's Display::new() making an EGLDisplay::Khr when the EGL version for the display is 1.4 or lower.
  • Added Device::drm_device_node_path() and Device::drm_render_device_node_path() getters to EGL via EGL_EXT_device_drm.
  • Added support for DrmDisplayHandle in EGL's Display::with_device() using EGL_DRM_MASTER_FD_EXT from EGL_EXT_device_drm.
  • Properly set up OpenGL-specific stuff on the NSView, instead of relying on Winit to do it.
  • Added OpenHarmony platform support with EGL.
  • Added support for Display::create_pbuffer_surface() in WGL via WGL_ARB_pbuffer.

Version 0.32.0

  • Breaking: updated raw-window-handle dependency to 0.6.
  • Bump MSRV from 1.65 to 1.70.
  • Bump windows-sys from 0.48.0 to 0.52.0.
  • Expose Egl and Glx raw API functions on Egl and Glx displays.
  • Add GLUTIN_WGL_OPENGL_DLL environment variable to change OpenGL provider name with WGL.

Version 0.31.3

  • Change Surface to be Send. This makes it consistent with the context, so now they are both Send but not Sync.

Version 0.31.2

  • Fixed EGL not setting context version with EGL versions before 1.5 and missing context ext.

Version 0.31.1

  • Fixed CGLContextObj having an invalid encoding on newer macOS versions.

Version 0.31.0

  • Bump MSRV from 1.60 to 1.65.
  • Breaking: bitflags which is used as a part of public API was updated to 2.0.
  • Breaking: .*SurfaceAccessor traits got removed; their methods now on respective .*GlContext traits instead.
  • Breaking: GlContext trait is now a part of the prelude.
  • Automatically cleanup the EGLDisplay when EGL_KHR_display_reference is present.
  • Add api::egl::Display::terminate to terminate the display when glutin doesn't manage it.
  • Fixed handling of Robustness::NoError and debug attribute when building context.
  • Robustness::NoError not being properly enabled with GLX/WGL.

Version 0.30.10

  • Add X11VisualInfo::visual_id to get XID of the visual.
  • Added support for EGL on Windows using Angle. This assumes libEGL.dll/libGLESv2.dll present.
  • EGL's Display::create_pbuffer_surface() no longer sets the invalid RENDER_BUFFER attribute.

Version 0.30.9

  • Fixed lock on SwapBuffers with some GLX drivers.
  • Fixed EGL's Surface::is_single_buffered being inversed.

Version 0.30.8

  • Fixed EGL dereferencing raw window handles on everything but X11 in legacy Window and Pixmap surface creation.
  • On GLX, fixed startup failure when passing default Flush with KHR_context_flush_control.
  • Behavior change: the Config's Api now has platform specific default instead of being unspecified.

Version 0.30.7

  • Altered specification for objc2 crate to pull patch update.

Version 0.30.6

  • Fixed handling of *_base extensions with EGL.

Version 0.30.5

  • Fixed EGL/GLX display initialization when the provided raw-window-handle has an unknown visual_id.
  • Fixed EGL always returning None for x11_visual().
  • Fixed GLX error handling assuming that XError's will arrive like they should on X11.
  • Fixed EGL window/pixmap creation when using legacy path.

Version 0.30.4

  • Fixed EGL display initialization with XcbDisplayHandle.
  • Fixed EGL/GLX Surface::width returning the height instead of the width.
  • On GLX, fixed handling of errors not directly requested by glutin.
  • Added GlConfig::hardware_accelerated to check if the config is hardware accelerated.
  • Added GlContext::context_api to get the ContextApi used by the context.
  • Added missing implementations of Surface::{width,height} for WGL/CGL
  • Fixed crash when accessing context from the off-thread on macOS.
  • Clarified that make_{,not}_current(), GlSurface::width(), GlSurface::height(), and GlSurface::resize() could block on macOS.

Version 0.30.3

  • Fixed wrong amount of rects committed in Surface::swap_buffers_with_damage with EGL.
  • Added missing Eq, PartialEq, and Hash impls for surface::Rect.

Version 0.30.2

  • Fixed robust context creation with EGL.
  • Moved to stable version of wayland-sys.
  • Allow offline renderers with CGL.
  • Fixed an error when compiling the EGL backend with only one of Wayland and X11 enabled.

Version 0.30.1

  • Added new glutin-winit crate to help bootstrapping new glutin with winit.
  • Added EGLDevice wrappers for EGL.
  • Added EGL dependent api to make a context current without a surface.
  • Added supports_transparency on GlConfig.
  • On GLX, try all extensions when setting vsync.
  • On WGL, fixed that Surface::swap_buffers takes longer with every call caused by frequent calls of the win32 function HDC GetDC(HWND hWnd).

Version 0.30.0

  • This version of glutin has been rewritten from the ground and no longer depends on winit, the raw-window-handle is now used instead of it.
  • The Api is now built around Display, Surface, Config, and Surface. For more info see crate documentation and examples.
  • Breaking: Bump MSRV from 1.57 to 1.60.
  • The ios support was removed for the lack of maintenance for now. In case there's a need for it, contributions are welcome.
  • The context creation is no longer limited to winit's supported platforms.
  • The underlying Api providers are publicly exposed now, so glutin could be used with just e.g. EGL.
  • Fixed soundness issues with Surface MT safety, since before EGLSurface could be sent to a different thread, which is not safe.
  • Fallback to Surface::swap_buffers when Surface::swap_buffers_with_damage is not supported on EGL.

Version 0.29.1 (2022-08-10)

  • Fix build failures when building from crates.io

Version 0.29.0 (2022-07-30)

  • Fix crash when creating OpenGLES context without explicit version.
  • Add buffer_age method on WindowedContext.
  • Return an Err instead of panicking when surfaceless GLX context creation fails on Linux.
  • Fix compilation on Android:
    • Switch from StaticStructGenerator to StructGenerator to dynamically load symbols.
    • Replace android_glue dependency with raw-window-handle, and remove broken lifecycle event handling.
    • Glutin can now be used on Android, however, the application must ensure it only creates the Context following a winit Event::Resumed event, and destroys the Context in response to a Event::Suspended event.
  • Updated winit dependency to 0.27.0. See winit's CHANGELOG for more info.
  • On Windows, build_raw_context now uses isize for hwnd to follow winit change.

Version 0.28.0 (2021-12-02)

  • On Windows, fixed a panic for headless contexts because of active drag-and-drop (OleInitialize failed! Result was: RPC_E_CHANGED_MODE)
  • Updated winit dependency to 0.26.0. See winit's CHANGELOG for more info.
  • Remove emscripten support leftover.

Version 0.27.0 (2021-06-01)

Version 0.26.0 (2020-12-10)

Version 0.25.1 (2020-10-10)

  • X11 and Wayland are now optional features (enabled by default)

Version 0.25.0 (2020-10-02)

  • Updated winit dependency to 0.23.0. See winit's CHANGELOG for more info.
  • Avoid loading libEGL.dll from PATH on Windows.

Version 0.24.1 (2020-05-26)

  • On X11, Fixed unnecessary instantiation of GLX/EGL

Version 0.24.0 (2020-03-11)

Version 0.23.0 (2020-02-06)

  • Updated winit dependency to 0.21.0. See winit's CHANGELOG for more info.
  • Removed broken CI for the armv7-apple-ios target.

Version 0.22.1 (2020-01-29)

  • Fixed incorrectly documented default value for ContextBuilder::with_srgb

Version 0.22.0 (2020-01-07)

Version 0.22.0-alpha6 (2020-01-05)

  • Fixed dependencies so wrong winit version is not used.
  • On X11, got rid of mistaken XRenderFindVisualFormat call so that glutin doesn't ignore configs that lack a XRenderPictFormat.
  • On iOS, fixed not linking against OpenGLES.framework.
  • On X11, fixed VSync not being disabled when requested.

Version 0.22.0-alpha5 (2019-11-14)

  • Fixed build issue.

Version 0.22.0-alpha4 (2019-11-10)

  • Update winit dependency to 0.20.0-alpha4. See winit's CHANGELOG for more info.
  • Added an xcode example for building for iOS.
  • Made using sRGB the default.
  • MacOSX's raw_handle trait method now returns the CGLContext object.

Version 0.22.0-alpha3 (2019-8-15)

  • Switched from needing a EventLoop to a EventLoopWindowTarget

Version 0.22.0-alpha2 (2019-08-15)

  • Fixed attribute handling for sRGB in WGL.
  • Fixed VSync being always enabled on EGL.

Version 0.20.1 (2019-08-08)

  • Backport: We now load libGL.so instead of libGLX.so.

Version 0.22.0-alpha1 (2019-06-21)

Version 0.21.0 (2019-04-20)

  • Bumped dependencies, fixed docs.

Version 0.21.0-rc3 (2019-04-13)

  • Bumped dependencies.

Version 0.21.0-rc2 (2019-04-08)

  • Breaking: Removed DisplayLost variant to ContextError.
  • Breaking: Renamed NotCurrentContext to NotCurrent.
  • Breaking: Renamed PossiblyCurrentContext to PossiblyCurrent.
  • Added treat_as_current function.

Version 0.21.0-rc1 (2019-04-07)

  • Breaking: Replaced CreationErrorPair enum variant with CreationErrors.
  • Added Clone to ContextBuilder.
  • Added headless example.
  • Removed internal code relating to libcaca.
  • Implemented Debug on all public facing types.
  • Dropping contexts on platforms using egl and/or glx no longer resets the current context, if the context dropped wasn't the current context.
  • Added context sharing support to MacOS.
  • Breaking: Removed ContextTrait.
  • Breaking: Renamed OsMesaContextExt to HeadlessContextExt. Added functions for using egl-surfaceless.
  • Breaking: Changed WindowedContext and RawContext into typedefs of ContextWrapper.
  • Breaking: Removed new_windowed and new_headless from WindowedContext and Context, respectively.
  • Breaking: Added two new types, NotCurrentContext and PossiblyCurrentContext, which RawContext, WindowedContext, ContextBuilder and Context are now generic over.
  • Added {make,treat_as}_not_current function to {Raw,Windowed,}Context.
  • We now load libGL.so instead of libGLX.so.
  • Breaking: Added DisplayLost variant to ContextError.
  • Fixed bug where we drop the hidden window belonging to a headless context on on X11 and/or Wayland before the actual context.
  • "Fixed" bug where we will close EGLDisplays while they are still in use by others. Angry and/or salty rant can be found in glutin/src/api/egl/mod.rs, you can't miss it.
  • Breaking: WindowedContexts now deref to Context, not Window. Please use .window() to access the window.

Version 0.20.0 (2019-03-09)

  • We no longer load libEGL.so and libGL.so multiple times.
  • Fixes Context::is_current incorrectly returning false.
  • Made ContextBuilder's pf_reqs public.
  • Breaking: Renamed GlContext{,Ext} to ContextTrait{,Ext}.
  • Breaking: Renamed GlWindow to WindowedContext.
  • Implemented context sharing support for Windows and Linux.
  • Added support for contexts made from raw parts for Windows and Linux.
  • Breaking: Removed shareable_with_windowed_contexts. Now you must build OsMesa contexts via a separate extension.
  • Added ContextBuilder::build_{windowed,headless} methods.
  • Breaking: Renamed Context::new to Context::new_headless. new_headless now accepts dimensions for the off-screen surface backing it.
  • Breaking: Renamed GlWindow::new to WindowedContext::new_windowed.
  • On X11 and Wayland, you can now use shared contexts, however, one limitation of the Wayland backend is that all shared contexts must use the same events pool as each other.
  • Added context sharing support to windows.
  • Improved docs.
  • Refactored code to be more consistent/cleaner. Ran rustfmt on everything.
  • Added NetBSD support.
  • Breaking: Removed new_shared function from Context and GlWindow, in favor of new.
  • Added build method to ContextBuilder.
  • Added get_egl_display method to GlContextExt trait and its implementation for platforms.
  • Removed minimum supported Rust version guarantee.
  • NoBackendAvailable is now Sync, as a result CreationError is also Sync.
  • Update winit dependency to 0.19.0. See winit's CHANGELOG for more info.

Version 0.19.0 (2018-11-09)

  • Breaking: The entire API for headless contexts has been removed. Please instead use Context::new() when trying to make a context without a visible window. Also removed headless feature.
  • Breaking: Types implementing the GlContext trait must now be sized.
  • Breaking: Added new CreationErrorPair enum variant to enum CreationError.
  • Remove requirement for EGL dev packages on Wayland.
  • Update winit dependency to 0.18.0. See winit's CHANGELOG for more info.

Version 0.18.0 (2018-08-03)

  • cocoa and core-graphics updates.
  • Breaking: Added OsError variant to ContextError.
  • Improved glX error reporting.
  • The iOS backend no longer fails to compile... again (added iOS testing on CI to prevent further issues).
  • Update winit dependency to 0.17.0. See winit's CHANGELOG for more info.

Version 0.17.0 (2018-06-27)

  • Fix regression that prevented automatic graphics switching in macOS (#980).
  • Add ContextBuilder::with_double_buffer function.
  • Add ContextBuilder::with_hardware_acceleration function.
  • Work around a presumed Android emulator bug that would cause context creation to return CreationError::OpenGlVersionNotSupported in some configurations (#1036).
  • Update winit dependency to 0.16.0. See winit's CHANGELOG for more info.
  • The iOS backend no longer fails to compile.

Version 0.16.0 (2018-05-09)

Version 0.15.0 (2018-04-25)

Version 0.14.0 (2018-04-06)

  • Update winit dependency to 0.12.0. See winit's CHANGELOG for more info.
  • Update Wayland backend to not use deprecated get_inner_size_points method.

Version 0.13.1 (2018-03-07)

  • Fix Android activity life cycle.
  • Update winit dependency to 0.11.2. See winit's CHANGELOG for more info.

Version 0.13.0 (2018-02-28)

Version 0.12.2 (2018-02-12)

  • Don't use yanked version of winit.

Version 0.12.1 (2018-02-05)

  • Add support for winapi 0.3 (#975).
  • Fix macOS to return compatibility profile if applicable (#977).
  • Update gl_generator and macOS dependencies.