mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
webgl: Track uniformlocation's program
This commit is contained in:
parent
532b53ddc9
commit
221a583784
3 changed files with 35 additions and 11 deletions
|
@ -55,6 +55,10 @@ impl WebGLProgram {
|
|||
|
||||
|
||||
impl WebGLProgram {
|
||||
pub fn id(&self) -> u32 {
|
||||
self.id
|
||||
}
|
||||
|
||||
/// glDeleteProgram
|
||||
pub fn delete(&self) {
|
||||
if !self.is_deleted.get() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue