app/internal/window: add needVSync() to eglDriver interface

This enables calling eglSwapInterval with an interval value of 0 or 1
on a per driver basis.

Signed-off-by: Denis Bernard <db047h@gmail.com>
This commit is contained in:
Denis Bernard
2019-10-26 15:21:05 +02:00
committed by Elias Naur
parent 2c75f52de6
commit b78d144119
4 changed files with 15 additions and 8 deletions
+2
View File
@@ -18,3 +18,5 @@ func (w *window) eglWindow(visID int) (_EGLNativeWindowType, int, int, error) {
win, width, height := w.nativeWindow(visID)
return _EGLNativeWindowType(win), width, height, nil
}
func (w *window) needVSync() bool { return false }