New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: do really debug functions work? #116

hajimehoshi opened this Issue Oct 26, 2018 · 1 comment


None yet
2 participants

hajimehoshi commented Oct 26, 2018

For example, in the current DebugMessageCallback implementation, Go function's pointer is converted to a C pointer:

func DebugMessageCallback(callback DebugProc, userParam unsafe.Pointer) {
	userDebugCallback = callback
	C.glowDebugMessageCallback(gpDebugMessageCallback, (C.GLDEBUGPROC)(unsafe.Pointer(&callback)), userParam)

I was wondering if this really works, and anyone tests this. I found #40 , and perhaps these functions don't work now?

@hajimehoshi hajimehoshi changed the title from Question: does really debug functions work? to Question: do really debug functions work? Oct 26, 2018

@dmitshur dmitshur added the question label Oct 29, 2018


This comment has been minimized.


dmitshur commented Oct 29, 2018

I have never used any of the *Debug* functions in gl, so I can't say.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment