You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is part of #99. To make runtime gl type selection works, we need to know current GL type is GL or GLES. It could help even when gl type is determined during build time. I assume the function and enum is like the following. Is it OK for gleam?
I think we can get away with having the full GlType image that has a default() constructor (implementing Default feature), which defaults to the platform GL (like it does now, but in compile time).
So,
This issue is part of #99. To make runtime gl type selection works, we need to know current GL type is GL or GLES. It could help even when gl type is determined during build time. I assume the function and enum is like the following. Is it OK for gleam?
#[derive(Debug, PartialEq)]
pub enum GlType {
Gl,
Gles,
}
#[cfg(not(target_os="android"))]
pub fn gl_type() -> GlType {
GlType::Gl
}
#[cfg(target_os="android")]
pub fn gl_type() -> GlType {
GlType::Gles
}
More background info could be in https://bugzilla.mozilla.org/show_bug.cgi?id=1325911
The text was updated successfully, but these errors were encountered: