Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 81548bc

Browse files
author
Mike Blumenkrantz
committed
remove call to glEnable(GL_TEXTURE_2D) for linux platform
this causes gl errors on linux
1 parent 697807a commit 81548bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rendergl.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,9 @@ impl RenderContext {
344344
pub fn new(compositing_context: NativeCompositingGraphicsContext,
345345
show_debug_borders: bool) -> RenderContext {
346346
unsafe { assert_eq!(gl::GetError(), gl::NO_ERROR); }
347-
gl::enable(gl::TEXTURE_2D);
347+
if cfg!(not(target_os="linux")) {
348+
gl::enable(gl::TEXTURE_2D);
349+
}
348350
unsafe { assert_eq!(gl::GetError(), gl::NO_ERROR); }
349351

350352
// Each layer uses premultiplied alpha!

0 commit comments

Comments
 (0)