Re: 11.0 bugs
Posted: Thu Apr 05, 2018 2:55 pm
Create the imagedata first, then create an image out of that. There shouldn't be any cases where you can't do it that way.
Create the imagedata first, then create an image out of that. There shouldn't be any cases where you can't do it that way.
I ran it on a Windows computer and don't crash. From the screenshot it looks like the crash is inside your graphics driver - do you have the latest available version?SiENcE wrote: ↑Thu Apr 05, 2018 1:26 pm It's a hard crash.
Samples attached (it's not from me, it was earlier shared in the forum).
When i comment the following line out, everything works.
Code: Select all
shader2 = love.graphics.newShader("shader2.glsl")
It's a laptop with intel chipset. I post settings tomorrow.
Not really any piece of documentation but the code works, so there's that.azoyan wrote: ↑Thu Apr 05, 2018 1:34 pm Where is love.audio.setEffect documentation? I see only https://love2d.org/wiki/Source:setEffect documentation.
love 11.0 uses more modern OpenGL versions / features when available, so it's a bit more susceptible to bugs inside graphics drivers than before (since drivers are less likely to have bugs in very old functionality).
Released: 2018-04-01
With setting LOVE_GRAPHICS_USE_GL2=1 the sample works. Is it possible to set this setting internally in conf.lua or equally and not from commandline? Would be interesting to know the concrete problem with the shader/canvas since love 0.10.2.slime wrote: ↑Thu Apr 05, 2018 3:39 pmYou can also try setting the environment variable LOVE_GRAPHICS_USE_GL2=1 before running love from a command line and see if it works in that case, to help narrow down the problem. (You can verify whether the environment variable was successfully applied via love.graphics.getRendererInfo).
Code: Select all
d:\test>SET LOVE_GRAPHICS_USE_GL2=1
d:\test>love110 .
d:\test>
This game indicates it was made for version '0.10.2' of LOVE.
It may not be compatible with the running version (11.0).
LOVE: 11.0
'pixelshaderhighp:' true
'glsl3:' false
'lighten:' true
'multicanvasformats:' true
'clampzero:' true
'shaderderivatives:' true
'instancing:' true
'fullnpot:' true
'texturesize:' 8192
'pointsize:' 20
'canvasmsaa:' 8
'cubetexturesize:' 8192
'anisotropy:' 16
'texturelayers:' 2048
'multicanvas:' 8
'volumetexturesize:' 2048
Processor Cores: 4
Name: OpenGL
Version: 4.0.0 - Build 9.18.10.3272
Vendor: Intel
Device: Intel(R) HD Graphics 4400
LOVE_GRAPHICS_USE_GL2 1
Code: Select all
This game indicates it was made for version '0.10.2' of LOVE.
It may not be compatible with the running version (11.0).
LOVE: 11.0
'pixelshaderhighp:' true
'glsl3:' true
'lighten:' true
'multicanvasformats:' true
'clampzero:' true
'shaderderivatives:' true
'instancing:' true
'fullnpot:' true
'texturesize:' 16384
'pointsize:' 255
'canvasmsaa:' 8
'cubetexturesize:' 16384
'anisotropy:' 16
'texturelayers:' 2048
'multicanvas:' 8
'volumetexturesize:' 2048
Processor Cores: 4
Name: OpenGL
Version: 3.3.0 - Build 10.18.14.4139
Vendor: Intel
Device: Intel(R) HD Graphics 4400
LOVE_GRAPHICS_USE_GL2 nil
It forces love to only use older parts of the graphics driver / older OpenGL features, even if the driver advertises OpenGL 3 support. Setting it will prevent various newer optional graphics features from working as well, such as GLSL 3.