Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Create a real EGL surface when creating a surface from a texture." #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions surfman/src/platform/windows/angle/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,7 @@ impl Device {
];

EGL_FUNCTIONS.with(|egl| {
let egl_surface = if let Some(HandleOrTexture::Texture(texture)) = share_handle {
let surface =
egl.CreatePbufferFromClientBuffer(self.native_display.egl_display(),
EGL_D3D_TEXTURE_ANGLE,
texture as *const _,
egl_config,
attributes.as_ptr());
assert_ne!(surface, egl::NO_SURFACE);
surface
} else if share_handle.is_some() {
let egl_surface = if share_handle.is_some() {
egl::NO_SURFACE
} else {
let surface = egl.CreatePbufferSurface(self.egl_display,
Expand Down