You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some users report MonoGameGLException: GL.GetError() returned 1281 or 1282 errors when mods edit textures. This is relatively rare but there's no known fix, so this ticket tracks the known info,
Sample error
[Content Patcher] Unhandled exception applying patch: Trypophobia > EditImage Maps\fall_beach #1.
Microsoft.Xna.Framework.Graphics.MonoGameGLException: GL.GetError() returned 1281
at Microsoft.Xna.Framework.Graphics.GraphicsExtensions.CheckGLError()
at Microsoft.Xna.Framework.Graphics.Texture2D.<PlatformSetData>c__AnonStorey1`1.<>m__0()
at Microsoft.Xna.Framework.Threading.BlockOnUIThread(Action action)
at Microsoft.Xna.Framework.Graphics.Texture2D.SetData[T](Int32 level, Int32 arraySlice, Nullable`1 rect, T[] data, Int32 startIndex, Int32 elementCount)
at StardewModdingAPI.Framework.Content.AssetDataForImage.PatchImage_PatchedBy<Platonymous.PyTK>(Object source, Texture2D sourceArea, Nullable`1 targetArea, Nullable`1 patchMode, PatchMode )
at ContentPatcher.Framework.Patches.EditImagePatch.Edit[T](IAssetData asset) in C:\source\_Stardew\Mods.Pathoschild\Common\Items\ItemRepository.cs:line 291
at ContentPatcher.Framework.PatchManager.Edit[T](IAssetData asset) in C:\source\_Stardew\Mods.Pathoschild\ContentPatcher\Framework\Tokens\ValueProviders\ManualValueProvider.cs:line 61
GL_INVALID_VALUE, 0x0501
Given when a value parameter is not a legal value for that function. This is only given for local problems; if the spec allows the value in certain circumstances, where other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead.
GL_INVALID_OPERATION, 0x0502
Given when the set of state for a command is not legal for the parameters given to that command. It is also given for commands where combinations of parameters define what the legal parameters are.
Known patterns
Error 1281
Most players never see this error.
Affected users generally see the error every time they play, but it can affect different mods or textures each time.
Some users report
MonoGameGLException: GL.GetError() returned 1281
or1282
errors when mods edit textures. This is relatively rare but there's no known fix, so this ticket tracks the known info,Sample error
OpenGL error descriptions for 1281 (
0x0501
) and 1282 (0x0502
):Known patterns
Error 1281
Error 1282
This is possibly related to 1281, but not enough reports yet to see patterns.
Known affected users
Error 1281
marry481
acearohippo (Saelym) on Discord
Nari on Discord
Zilch on Discord
Error 1282
PurrplingCat on Discord
Wingheart on Discord
The text was updated successfully, but these errors were encountered: