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:
Laytan Laats
2025-03-12 18:39:57 +01:00
parent d3b1aaad18
commit b76fd84084
3 changed files with 23 additions and 11 deletions
+1 -1
View File
@@ -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)