[Solved] Non-readable and MSAA textures cannot have mipmaps. (when the canvas is set to readable)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Bigfoot71
Party member
Posts: 287
Joined: Fri Mar 11, 2022 11:07 am

[Solved] Non-readable and MSAA textures cannot have mipmaps. (when the canvas is set to readable)

Post by Bigfoot71 »

Hi everyone ! :D

I tweak a bit on a sort of menu to configure the graphics of a demo, nothing very serious, but while tweaking precisely I came across this error:

Code: Select all

Error: main.lua:1: Non-readable and MSAA textures cannot have mipmaps.
stack traceback:
	[string "boot.lua"]:777: in function <[string "boot.lua"]:773>
	[C]: in function 'newCanvas'
	main.lua:1: in main chunk
	[C]: in function 'require'
	[string "boot.lua"]:570: in function <[string "boot.lua"]:380>
	[C]: in function 'xpcall'
	[string "boot.lua"]:787: in function <[string "boot.lua"]:780>
	[C]: in function 'xpcall'
Line one of the main because after encountering this problem I just did this:

Code: Select all

local canvas = love.graphics.newCanvas(800, 600, {msaa=2, mipmaps="auto", readable=true})
Does anyone know why? Does the term "Non-readable" mean match the `readable` parameter when creating a canvas?
Last edited by Bigfoot71 on Tue Jan 24, 2023 3:06 pm, edited 1 time in total.
My avatar code for the curious :D V1, V2, V3.
User avatar
slime
Solid Snayke
Posts: 3129
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Non-readable and MSAA textures cannot have mipmaps. (when the canvas is set to readable)

Post by slime »

As the error says, you can't have a canvas with both MSAA and mipmaps.

The error is basically saying "if the canvas is set to non-readable, or if the canvas has MSAA, then it can't have mipmaps."
User avatar
Bigfoot71
Party member
Posts: 287
Joined: Fri Mar 11, 2022 11:07 am

Re: Non-readable and MSAA textures cannot have mipmaps. (when the canvas is set to readable)

Post by Bigfoot71 »

Ah thank you, I understood "if the canvas is not readable AND with msaa then there can be no mipmaps", wrong interpretation on my part...
My avatar code for the curious :D V1, V2, V3.
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests