shader has to be passed as pointer
This commit is contained in:
parent
8861ee437d
commit
d374f90b45
1 changed files with 1 additions and 1 deletions
|
@ -1328,7 +1328,7 @@ func EndTextureMode() {
|
|||
|
||||
// BeginShaderMode - Begin custom shader drawing
|
||||
func BeginShaderMode(shader Shader) {
|
||||
beginShaderMode(*(*uintptr)(unsafe.Pointer(&shader)))
|
||||
beginShaderMode(uintptr(unsafe.Pointer(&shader)))
|
||||
}
|
||||
|
||||
// EndShaderMode - End custom shader drawing (use default shader)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue