From 5bcfdee75fe7a6e107f770a1a553713f72b961ce Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 6 Oct 2024 16:29:42 +0900 Subject: [PATCH] internal/graphicsdriver/playstation5: bug fix: need to adjust image size --- internal/graphicsdriver/playstation5/graphics_playstation5.go | 2 ++ 1 file changed, 2 insertions(+) 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) }