diff --git a/internal/graphicsdriver/playstation5/graphics_playstation5.go b/internal/graphicsdriver/playstation5/graphics_playstation5.go index 754238738..5fc31684c 100644 --- a/internal/graphicsdriver/playstation5/graphics_playstation5.go +++ b/internal/graphicsdriver/playstation5/graphics_playstation5.go @@ -87,6 +87,8 @@ func (g *Graphics) SetVertices(vertices []float32, indices []uint32) error { func (g *Graphics) NewImage(width, height int) (graphicsdriver.Image, error) { var id C.int + width = graphics.InternalImageSize(width) + height = graphics.InternalImageSize(height) if err := C.ebitengine_NewImage(&id, C.int(width), C.int(height)); !C.ebitengine_IsErrorNil(&err) { return nil, newPlaystation5Error("(*playstation5.Graphics).NewImage", err) }