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
x/mobile/gl: fails to compile and run on windows #16991
Comments
After compiling ANGLE from source it seems to have similar problems - so not related to Go. However it's quite weird -- starting |
It seems the |
I've created a potential fix in https://go-review.googlesource.com/#/c/28814/, but it also needs a new tgz of the ANGLE project containing d3dcompiler. Also not completely sure about the approach taken. The fix also needs to take care of the situation where the person has already downloaded the into local GoGL that doesn't contain d3dcompiler. But, not sure what's the best approach to clean it up. If it's not present delete the folder, and let it redownload? |
/cc @crawshaw |
CL https://golang.org/cl/28814 mentions this issue. |
Add missing context3 for Windows. Add missing d3dcompiler_47.dll loading. Check whether dll architecture matches. Search ANGLE from Chrome path. Fixes golang/go#16991 Change-Id: Ia042f75241c2398fabda03bb2d0e683eb34545c7 Reviewed-on: https://go-review.googlesource.com/28814 Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Add missing context3 for Windows. Add missing d3dcompiler_47.dll loading. Check whether dll architecture matches. Search ANGLE from Chrome path. Fixes golang/go#16991 Change-Id: Ia042f75241c2398fabda03bb2d0e683eb34545c7 Reviewed-on: https://go-review.googlesource.com/28814 Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Using go1.7/windows/amd64.
go get golang.org/x/mobile/gl
is sufficient to show the issue.Simply adding
context3
intowork_windows.go
similar towork.go
makes things compilable. Not sure whether this fix is better than not compiling.After fixing
context3
bothexample/basic
andexample/flappy
compile, but fail at runtime due to a: "error creating GL program: glutil: Failed to create D3D shaders." I've tried using the latest angle dll from Chrome, but it fails similarly.Not quite sure whether there's something obvious going wrong wrt shaders. I can make a patch or debug further, but I'm not sure what is the best way to attack the problem.
Related #9306
The text was updated successfully, but these errors were encountered: