Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
  • Loading branch information
sagudev committed Jan 8, 2025
1 parent e4fcc26 commit 171790c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/platform/windows/wgl/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use crate::{ContextID, Error, SurfaceAccess, SurfaceID, SurfaceInfo, SurfaceType
use crate::gl;
type GLenum = c_uint;
type GLint = c_int;
type GLuint = c_uint;
use crate::gl_utils;
use euclid::default::Size2D;
use glow::HasContext;
Expand Down Expand Up @@ -213,7 +212,7 @@ impl Device {
assert_ne!(ok, FALSE);

// Make our texture object on the GL side.
let mut gl_texture = context.gl.create_texture().unwrap();
let gl_texture = context.gl.create_texture().unwrap();

// Bind the GL texture to the D3D11 texture.
let gl_dx_interop_object = (dx_interop_functions.DXRegisterObjectNV)(
Expand All @@ -234,7 +233,7 @@ impl Device {
}

// Build our FBO.
let mut gl_framebuffer = context.gl.create_framebuffer().unwrap();
let gl_framebuffer = context.gl.create_framebuffer().unwrap();
let _guard = self.temporarily_bind_framebuffer(context, Some(gl_framebuffer));

// Attach the reflected D3D11 texture to that FBO.
Expand Down Expand Up @@ -421,7 +420,7 @@ impl Device {
assert_ne!(ok, FALSE);

// Create a GL texture.
let mut gl_texture = context.gl.create_texture().unwrap();
let gl_texture = context.gl.create_texture().unwrap();

// Register that texture with GL/DX interop.
let mut local_gl_dx_interop_object = (dx_interop_functions.DXRegisterObjectNV)(
Expand Down

0 comments on commit 171790c

Please # to comment.