Skip to content

Commit

Permalink
fix mac
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <[email protected]>
  • Loading branch information
sagudev committed Jan 6, 2025
1 parent 9b539b7 commit 22d2d35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/platform/macos/cgl/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Device {
let gl = &context.gl;
unsafe {
let texture_object =
self.bind_to_gl_texture(&system_surface.io_surface, &system_surface.size);
self.bind_to_gl_texture(gl, &system_surface.io_surface, &system_surface.size);

let framebuffer_object = gl.create_framebuffer().unwrap();
let _guard =
Expand Down Expand Up @@ -160,6 +160,7 @@ impl Device {
let _guard = self.temporarily_make_context_current(context).unwrap();

let texture_object = self.bind_to_gl_texture(
&context.gl,
&surface.system_surface.io_surface,
&surface.system_surface.size,
);
Expand Down Expand Up @@ -322,7 +323,8 @@ impl Device {
let gl = &context.gl;
unsafe {
// Recreate the GL texture and bind it to the FBO
let texture_object = self.bind_to_gl_texture(&surface.system_surface.io_surface, &size);
let texture_object =
self.bind_to_gl_texture(gl, &surface.system_surface.io_surface, &size);
gl.framebuffer_texture_2d(
gl::FRAMEBUFFER,
gl::COLOR_ATTACHMENT0,
Expand Down

0 comments on commit 22d2d35

Please sign in to comment.