mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
webgl: add BlendEquationSeparate and GetParameter4i
`GetParameter4i` can be used to retrieve the current scissor rect, or the curent viewport, which was previously impossible. Also adds `BlendEquationSeparate` which seemed to be missing. Also removes an instance of `do`.
This commit is contained in:
Vendored
+1
-1
@@ -29,7 +29,7 @@ CreateProgramFromStrings :: proc(vs_sources, fs_sources: []string) -> (program:
|
||||
}
|
||||
|
||||
program = CreateProgram()
|
||||
defer if !ok do DeleteProgram(program)
|
||||
defer if !ok { DeleteProgram(program) }
|
||||
|
||||
AttachShader(program, vs)
|
||||
AttachShader(program, fs)
|
||||
|
||||
Reference in New Issue
Block a user