app: add error result to context.RenderTarget

Vulkan may report VK_ERROR_OUT_OF_DATE_KHR which is not a fatal error.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-09-07 18:42:21 +02:00
parent 9e6ed3cb96
commit af6770de18
7 changed files with 19 additions and 15 deletions
+2 -2
View File
@@ -97,8 +97,8 @@ func NewContext(disp NativeDisplayType) (*Context, error) {
return c, nil
}
func (c *Context) RenderTarget() gpu.RenderTarget {
return gpu.OpenGLRenderTarget{}
func (c *Context) RenderTarget() (gpu.RenderTarget, error) {
return gpu.OpenGLRenderTarget{}, nil
}
func (c *Context) API() gpu.API {