I’m having some problems with an opengl application I’m writing.
GLenum err = 0;
glEnable( GL_DEPTH_TEST );
err = glGetError();
if ( err != GL_NO_ERROR )
printf( "Error: %sn",glewGetErrorString( err ) );
The above code prints out unknown error to the console, and when I step through it, I get the 1280 code. I’ve checked the khronos page for glEnable and the enum is there, so why would this cause an issue?
I’ve looked up the error code and it’s for an invalid enum, but how can this be?
asked Dec 30, 2015 at 10:37
6
Error 0x500/1280 means GL_INVALID_ENUM
, which means one of the enumerators in the function call is not allowed. Obviously, that should not happen with GL_DEPTH_TEST
, which has been allowed in glEnable
since OpenGL 1.0. The following are all of the possible reasons why this might happen:
- The error is coming from some other function. Be sure you’re removed all errors from the queue before making this call. You say you already tried that; I’m just being comprehensive.
- Your OpenGL Loading Library is faulty. Perhaps it has given the wrong value to
GL_DEPTH_TEST
. The value ofGL_DEPTH_TEST
should be 0x0B71. Alternatively, it may have put the wrong function inglEnable
. To test this, you could debug into your library’s initialization function, or you could use glIntercept or a similar tool to see exactly what function is being called. - Driver bug. To test this, try putting this enable (with error checking) in different places in your code. Where does it error and where does it not?
answered Dec 30, 2015 at 13:43
Nicol BolasNicol Bolas
444k63 gold badges766 silver badges968 bronze badges
3
Are you sure that the error came from the glEnable(GL_DEPTH_TEST);
call ?
You may try this:
PrintErrors(); // Test for previous error
glEnable(GL_DEPTH_TEST);
PrintErrors();
...
void PrintError() {
GLenum err;
for(;;) {
err = glGetError();
if (err == GL_NO_ERROR) break;
printf("Error: %sn", glewGetErrorString(err));
}
}
answered Dec 30, 2015 at 11:26
OraceOrace
7,75929 silver badges45 bronze badges
3
I don’t think this error comes from glEnable( GL_DEPTH_TEST )
;
The code 1280
means GL_INVALID_ENUM
;
I’ve encountered this error before. In my situation, I passed a renderer_program
to glEnable
method by mistake. After passing a correct enum to the method, OpenGL tells no errors.
So, maybe you need to focus on other parts of your code.
answered Apr 22, 2022 at 9:02
L. SwifterL. Swifter
3,14927 silver badges52 bronze badges
Mojang Studio introduced Minecraft for the very first time more than 10 years ago. Since then, it has continuously grown to be among the world’s most popular video game franchises with millions of users in different countries.
This open-world sandbox game has something unique and exciting to offer to both young and older users. But despite being one of the best of its kind, Minecraft isn’t free from glitches and errors.
A very common problem on Minecraft that leaves many players scratching their heads in frustration is none other than OpenGL Error 1283 or 1280 (Invalid Enum).
Top Solutions to Troubleshoot Minecraft OpenGL Error 1283 or 1280 (Invalid Enum)
Now, you don’t have to panic if you see this error when playing Minecraft. While it’s an annoying problem, the good news is that you can have the gaming issue fixed in no time with the following solutions:
Disable Show GL Errors
In case you don’t, Minecraft has a setting that lets you disable popups for OpenGL errors. To do this, you just need to do the steps below:
- Click Options in the game.
- Select Video Settings and proceed to Others.
- Choose and turn off Show GL Errors.
- Save the new setting and restart the game to see if Minecraft now works properly without any errors.
Update to the Latest Java Version
Make sure that your Java is updated to the latest version. Make sure that there’s a path included in the javaw.exe file of this latest version under Installations. You should then click the symbol ••• beside the profile you’re using and proceed to More options. Click Java Executable.
For Windows users, you can find this file under C:/Program Files (or x86)/Java/bin). The official Java website is the best place to get the latest version of Java.
Disable Mods in the Meantime
It’s quite common for many players to mod Minecraft in the hopes of improving their experience with the game. But the thing is that some of these mods might end up interfering with the game itself. You might want to consider disabling Minecraft mods to get rid of OpenGL Error 1283 or 1280 (Invalid Enum).
Once the errors are gone, make sure you identify the root of the problem, which might be mods in his case. Mods can be disabled individually so that it will be easier for you to determine the specific one that causes the problem in the first place.
However, if the problem persists, chances are mods aren’t the main issue here. If this is the case, it’s recommended that you enable mods again later.
Update OptiFine
Speaking of mods, OptiFine is a mod in Minecraft that helps improve performance and increase FPS. OptiFine is likely the reason for the error if you’re using it for Minecraft and you’ll need to update it soon to solve the problem.
Update Your Graphics Card Driver
An outdated or missing graphics card driver is another common culprit behind OpenGL Error 1283 or 1280 (Invalid Enum) in Minecraft. To rule out this possibility, make sure that your graphics card driver is updated to the latest version.
Despite being launched over a decade ago, Minecraft continues to be a favorite game among users of all ages. However, OpenGL Error 1283 or 1280 (Invalid Enum) may take away all the thrill of the game.
Follow the tips above and see if they fix the issue.
Ошибка 1280 (Invalid Enum) в Minecraft, несмотря на её более чем давнюю историю, стабильно остается одной из самых «популярных» в игре.
А с другой стороны, устраняется она тоже сравнительно легко. И сейчас вкратце расскажем, как это делается.
Итак, по порядку:
#1 — ошибка 1280 в Minecraft — отключаем не время моды
Лучше, все и сразу. В том числе и самые нужные и полезные. Так как чаще всего ошибка с кодом 1280 (она же — ошибка OpenGL) возникает по причине сбоя в работе какого-то из модов игры.
Так что, сначала вырубаем все моды, перезапускаем Minecraft и мониторим результат. Если после перезапуска ошибка пропала и игра работает нормально, то причина — однозначно в модах (как оно в большинстве случаев и бывает).
Следовательно, следующим этапом просто включаем моды по очереди и ждем, когда 1280 выскочит снова. На каком моде она появилась, тот и виноват — переустанавливаем его или не включаем как минимум до следующего апдейта.
Если же и после отключения всех модов и перезапуска ошибка все равно появляется, значит дело не в модах. Идем дальше (но моды пока не включаем!).
Не пропустите: ОШИБКА С КОДОМ 0X803F8001 В MINECRAFT: ЧТО ЗНАЧИТ И КАК УСТРАНЯТЬ
#2 — ошибка 1280 в Minecraft — обновляем драйвер видеокарты
С учетом того, что эта и еще уйма других ошибок в Minecraft случаются из-за устаревшего драйвера «видяхи» и/или из-за каких-то неполадок в его работе (установлен или обновился «коряво» и пр.), данную процедуру выполнять нужно в любом случае и желательно почаще.
Потому идем на официальный сайт производителя видеокарты — Nvidia [ССЫЛКА] или AMD [ССЫЛКА] — качаем и устанавливаем самую свежую версию драйвера для своей видеокарты.
#3 — ошибка 1280 в Minecraft — обновляем OptiFine
Мод OptiFine, как известно, очень помогает оптимизировать производительность игры (в особенности на так называемых слабых ПК). Но вместе с тем, он также может вызывать ошибку с кодом 1280.
Поэтому если тоже юзаем OptiFine и тоже возникает эта ошибка, то после проверки и обновления драйвера видеокарты, так же проверяем и обновляем мод OptiFine. Процедура тоже стандартная:
- идем на официальный сайт OptiFine — [ССЫЛКА]
- качаем последнюю версию мода и выполняем обновление, следуя инструкциям установщика;
- после завершения установки новой версии перезагружаем компьютер.
Не пропустите: ТРАССИРОВКА ЛУЧЕЙ В MINECRAFT: КАК ЭТО ДЕЛАЕТСЯ И ЧТО ДЛЯ ЭТОГО ТРЕБУЕТСЯ
#4 — ошибка 1280 в Minecraft — обновляем Java
Устанавливаем последнюю версию Java, после чего указываем путь к файлу javaw.exe (новой версии). В Windows — адрес по умолчанию C:/Program Files (или x86)/Java/bin.
Скачать последнюю версию Java всегда можно с сайта разработчика — [ССЫЛКА].
Не пропустите: УСТАРЕВШИЙ КЛИЕНТ MINECRAFT: ПОЧЕМУ, И ЧТО С ЭТИМ ДЕЛАТЬ?
#5 — 1280 в Minecraft — отключаем уведомление об ошибке OpenGL
На тот случай, когда ни одна из перечисленных выше мер должного эффекта не возымела и игра настойчиво выдает ошибку 1280 раз за разом, несмотря ни на что, то:
- открываем «Настройки» Minecraft;
- переходим в «Настройки графики» и там кликаем «Прочее…«
- на следующем экране в списке опций находим и выключаем «Показывать ошибки GL»;
- сохраняем изменение и перезапускаем игру.
Вот как-то так…
Итак, после обновления драйверов видеокарты ( GTX 560 Ti, установлен драйвер 320.18) возникли проблемы с клиентом.
В консоли выдается ошибка:
[INFO] [STDERR] GL Error 1280: Invalid enum pre-useProgram
После обновления на Optifine U D3 ошибка осталась, но текст поменялся:
2013-05-25 16:20:12 [SEVERE] [Minecraft-Client] ########## GL ERROR ##########
2013-05-25 16:20:12 [SEVERE] [Minecraft-Client] @ Post render
2013-05-25 16:20:12 [SEVERE] [Minecraft-Client] 1280: Invalid enum
Клиент при это вроде работает, ошибок или провалов FPS не замечал.
Ошибка возникает не всегда, а когда смотришь на воду, причем с определенного расстояния и вода должна быть глубокой.
Пробовал несколько раз запустить «пустой» майнкрафт 1.5.2 — ошибка не появлялась, либо в карте не создавался такой ландшафт, который вызывает ошибку.
Удалять Optifine из сборки пробовал, не помогает. Версии Forge пробовал разные — и 710 и 712.
Кто-нибудь сталкивался с подобной проблемой? Поисков в Google нашел что такая проблема встречается, но решений нет. Искал очень долго.
Пока проблема не будет решена, я, скорее всего, заморожу съемки новых серий.
When booting up Minecraft on 1.13.2 on version OptiFine-1.13.2_HD_U_E6.jar that error occurs. It happens every 11 seconds from the moment the game is at «Reloading Custom Textures». This shows up in chat
The error in the game output is this:
OpenGL API ERROR: 1280 (Error has been generated. GL error GL_INVALID_ENUM in (null): (ID: 173538523) Generic error) java.lang.Exception: Stack trace at org.lwjgl.opengl.GLDebugMessageCallbackI.callback(GLDebugMessageCallbackI.java:39) at org.lwjgl.system.JNI.invokePV(Native Method) at org.lwjgl.glfw.GLFW.glfwSwapBuffers(GLFW.java:4518) at cgd.a(MainWindow.java:457) at cft.c(SourceFile:875) at cft.a(SourceFile:395) at net.minecraft.client.main.Main.main(SourceFile:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Resource packs:
96f743018ca1a68d161f312f9b387386-Texture Update V3.3 Java.zip, Lower Shield.zip
F3 Screenshot:
I don’t know if this is helpful, but the OpenGL version is:
4.3.0 — Build 20.19.15.4642
EDIT:
The error still occurs on version 1.13.2-OptiFine_HD_U_E7, though every 3 seconds instead of 11
-
#1
Hi, so I’ve been getting this error message in my chat saying «OpenGL Error : 1280 (Invalid enum)» constantly over and over again. Anyone know how to fix this? Would appreciate it ty.
Just a heads up, I have a MacBook Air sooo
meyi
Well-Known Member
-
#3
Hi, so I’ve been getting this error message in my chat saying «OpenGL Error : 1280 (Invalid enum)» constantly over and over again. Anyone know how to fix this? Would appreciate it ty.
Just a heads up, I have a MacBook Air sooo
Can you send the logs of the error (https://hypixel.net/threads/guide-viewing-minecraft-chat-logs.92416/)? Just the error, not the chat and stuff surrounding it.
-
#4
Try adding this to the JVM arguments (where you specify how much RAM Minecraft runs with).
-
#5
Can you send the logs of the error (https://hypixel.net/threads/guide-viewing-minecraft-chat-logs.92416/)? Just the error, not the chat and stuff surrounding it.
the website links broken; don’t know how to do it either
EDIT : nvm here i found it
Code:
[12:54:11] [Client thread/ERROR]: @ Post render
[12:54:11] [Client thread/ERROR]: 1280: Invalid enum
[12:54:11] [Client thread/ERROR]: ########## GL ERROR ##########
[12:54:11] [Client thread/ERROR]: @ Post render
[12:54:11] [Client thread/ERROR]: 1280: Invalid enum
[12:54:11] [Client thread/ERROR]: ########## GL ERROR ##########
[12:54:11] [Client thread/ERROR]: @ Post render
[12:54:11] [Client thread/ERROR]: 1280: Invalid enum
[12:54:11] [Client thread/ERROR]: ########## GL ERROR ##########
[12:54:11] [Client thread/ERROR]: @ Post render
[12:54:11] [Client thread/ERROR]: 1280: Invalid enum
[12:54:11] [Client thread/ERROR]: ########## GL ERROR ##########
Try adding this to the JVM arguments (where you specify how much RAM Minecraft runs with).
thanks, but i already have a jvm argument pasted in, so should i paste it in after the current jvm argument i have rn?
EDIT: Tried the code, doesn’t seem to change the problem
Last edited: Jul 11, 2018
-
#7
There should be something that says what causes it. «Caused by exception at java.error.error.error» or whatever. (java.error.error.error obviously doesn’t exist)
GL errors don’t show that
-
#8
GL errors don’t show that
yea as this dude says i dont have anything else from it
Ошибка 1280 (Invalid Enum) в Minecraft, несмотря на её более чем давнюю историю, стабильно остается одной из самых «популярных» в игре.
А с другой стороны, устраняется она тоже сравнительно легко. И сейчас вкратце расскажем, как это делается.
Итак, по порядку:
#1 — ошибка 1280 в Minecraft — отключаем не время моды
Лучше, все и сразу. В том числе и самые нужные и полезные. Так как чаще всего ошибка с кодом 1280 (она же — ошибка OpenGL) возникает по причине сбоя в работе какого-то из модов игры.
Так что, сначала вырубаем все моды, перезапускаем Minecraft и мониторим результат. Если после перезапуска ошибка пропала и игра работает нормально, то причина — однозначно в модах (как оно в большинстве случаев и бывает).
Не пропустите: ОШИБКА С КОДОМ 0X803F8001 В MINECRAFT: ЧТО ЗНАЧИТ И КАК УСТРАНЯТЬ
Следовательно, следующим этапом просто включаем моды по очереди и ждем, когда 1280 выскочит снова. На каком моде она появилась, тот и виноват — переустанавливаем его или не включаем как минимум до следующего апдейта.
Если же и после отключения всех модов и перезапуска ошибка все равно появляется, значит дело не в модах. Идем дальше (но моды пока не включаем!).
#2 — ошибка 1280 в Minecraft — обновляем драйвер видеокарты
С учетом того, что эта и еще уйма других ошибок в Minecraft случаются из-за устаревшего драйвера «видяхи» и/или из-за каких-то неполадок в его работе (установлен или обновился «коряво» и пр.), данную процедуру выполнять нужно в любом случае и желательно почаще.
Потому идем на официальный сайт производителя видеокарты — Nvidia [ССЫЛКА] или AMD [ССЫЛКА] — качаем и устанавливаем самую свежую версию драйвера для своей видеокарты.
#3 — ошибка 1280 в Minecraft — обновляем OptiFine
Мод OptiFine, как известно, очень помогает оптимизировать производительность игры (в особенности на так называемых слабых ПК). Но вместе с тем, он также может вызывать ошибку с кодом 1280.
Поэтому если тоже юзаем OptiFine и тоже возникает эта ошибка, то после проверки и обновления драйвера видеокарты, так же проверяем и обновляем мод OptiFine. Процедура тоже стандартная:
- идем на официальный сайт OptiFine — [ССЫЛКА]
- качаем последнюю версию мода и выполняем обновление, следуя инструкциям установщика;
- после завершения установки новой версии перезагружаем компьютер.
Не пропустите: ТРАССИРОВКА ЛУЧЕЙ В MINECRAFT: КАК ЭТО ДЕЛАЕТСЯ И ЧТО ДЛЯ ЭТОГО ТРЕБУЕТСЯ
#4 — ошибка 1280 в Minecraft — обновляем Java
Устанавливаем последнюю версию Java, после чего указываем путь к файлу javaw.exe (новой версии). В Windows — адрес по умолчанию C:/Program Files (или x86)/Java/bin.
Скачать последнюю версию Java всегда можно с сайта разработчика — [ССЫЛКА].
Не пропустите: УСТАРЕВШИЙ КЛИЕНТ MINECRAFT: ПОЧЕМУ, И ЧТО С ЭТИМ ДЕЛАТЬ?
#5 — 1280 в Minecraft — отключаем уведомление об ошибке OpenGL
На тот случай, когда ни одна из перечисленных выше мер должного эффекта не возымела и игра настойчиво выдает ошибку 1280 раз за разом, несмотря ни на что, то:
- открываем «Настройки» Minecraft;
- переходим в «Настройки графики» и там кликаем «Прочее…«
- на следующем экране в списке опций находим и выключаем «Показывать ошибки GL»;
- сохраняем изменение и перезапускаем игру.
Вот как-то так…
When booting up Minecraft on 1.13.2 on version OptiFine-1.13.2_HD_U_E6.jar that error occurs. It happens every 11 seconds from the moment the game is at «Reloading Custom Textures». This shows up in chat
The error in the game output is this:
OpenGL API ERROR: 1280 (Error has been generated. GL error GL_INVALID_ENUM in (null): (ID: 173538523) Generic error) java.lang.Exception: Stack trace at org.lwjgl.opengl.GLDebugMessageCallbackI.callback(GLDebugMessageCallbackI.java:39) at org.lwjgl.system.JNI.invokePV(Native Method) at org.lwjgl.glfw.GLFW.glfwSwapBuffers(GLFW.java:4518) at cgd.a(MainWindow.java:457) at cft.c(SourceFile:875) at cft.a(SourceFile:395) at net.minecraft.client.main.Main.main(SourceFile:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Resource packs:
96f743018ca1a68d161f312f9b387386-Texture Update V3.3 Java.zip, Lower Shield.zip
F3 Screenshot:
I don’t know if this is helpful, but the OpenGL version is:
4.3.0 — Build 20.19.15.4642
EDIT:
The error still occurs on version 1.13.2-OptiFine_HD_U_E7, though every 3 seconds instead of 11