Errors generated by nngx API functions can be obtained using the glGetError function.
Below is the list of error codes.
| Error Code | Error-Generating Function | Cause of Error |
|---|---|---|
| GL_ERROR_8000_DMP | nngxGenCmdlists |
A negative value was specified for n. |
| GL_ERROR_8001_DMP | nngxGenCmdlists |
Failed to allocate memory in management region. |
| GL_ERROR_8002_DMP | nngxDeleteCmdlists |
A negative value was specified for n. |
| GL_ERROR_8003_DMP | nngxDeleteCmdlists |
Running command-list object was deleted. |
| GL_ERROR_8004_DMP | nngxBindCmdlist |
Failed to allocate memory in management region. |
| GL_ERROR_8005_DMP | nngxBindCmdlist |
Function was called while saving a command list. |
| GL_ERROR_8006_DMP | nngxCmdlistStorage |
Failed to allocate region for command buffer or command requests. |
| GL_ERROR_8007_DMP | nngxCmdlistStorage |
Function was called on a running command list. |
| GL_ERROR_8008_DMP | nngxCmdlistStorage |
A negative value was specified for bufsize or requestcount. |
| GL_ERROR_8009_DMP | nngxRunCmdlist |
The bound command list does not have a region allocated for command buffer and command requests. |
| GL_ERROR_800A_DMP | nngxReserveStopCmdlist |
Function was called on a running command list. |
| GL_ERROR_800B_DMP | nngxReserveStopCmdlist |
The id is set to 0, a negative value, or a value exceeding the maximum number of command requests. |
| GL_ERROR_800C_DMP | nngxSplitDrawCmdlist |
0 is bound to the current command list. |
| GL_ERROR_800D_DMP | nngxSplitDrawCmdlist |
The number of accumulated command requests has reached the maximum number of command requests. |
| GL_ERROR_800E_DMP | nngxSplitDrawCmdlist |
The capacity of the command buffer is exceeded when the command to "complete the loading of 3D commands" is added to the accumulated 3D command buffer. |
| GL_ERROR_800F_DMP | nngxClearCmdlist |
Function was called on a running command list. |
| GL_ERROR_8010_DMP | nngxSetCmdlistCallback |
Function was called on a running command list. |
| GL_ERROR_8012_DMP | nngxEnableCmdlistCallback |
The id is set to 0, a negative value other than -1, or a value exceeding the maximum number of command requests. |
| GL_ERROR_8014_DMP | nngxDisableCmdlistCallback |
The id is set to 0, a negative value other than -1, or a value exceeding the maximum number of command requests. |
| GL_ERROR_8015_DMP | nngxSetCmdlistParameteri |
Function was called on a running command list. |
| GL_ERROR_8016_DMP | nngxSetCmdlistParameteri |
An invalid value was specified for pname or param. |
| GL_ERROR_8017_DMP | nngxGetCmdlistParameteri |
An invalid value was specified for pname. |
| GL_ERROR_8018_DMP | nngxGetCmdlistParameteri |
The bound command list is 0, and something other than NN_GX_CMDLIST_BINDING was specified for pname. |
| GL_ERROR_8019_DMP | nngxCheckVSync |
An invalid value was specified for display. |
| GL_ERROR_801A_DMP | nngxWaitVSync |
An invalid value was specified for display. |
| GL_ERROR_801B_DMP | nngxSetVSyncCallback |
An invalid value was specified for display. |
| GL_ERROR_801C_DMP | nngxGenDisplaybuffers |
A negative value was specified for n. |
| GL_ERROR_801D_DMP | nngxGenDisplaybuffers |
Failed to allocate memory in management region. |
| GL_ERROR_801E_DMP | nngxDeleteDisplaybuffers |
A negative value was specified for n. |
| GL_ERROR_801F_DMP | nngxActiveDisplay |
An invalid value was specified for display. |
| GL_ERROR_8020_DMP | nngxBindDisplaybuffer |
Failed to allocate memory in management region. |
| GL_ERROR_8021_DMP | nngxDisplaybufferStorage |
0 is bound to the display target. |
| GL_ERROR_8022_DMP | nngxDisplaybufferStorage |
An invalid value was set for width, height. |
| GL_ERROR_8023_DMP | nngxDisplaybufferStorage |
An invalid value was specified for format. |
| GL_ERROR_8024_DMP | nngxDisplaybufferStorage |
An invalid value was specified for area. |
| GL_ERROR_8025_DMP | nngxDisplaybufferStorage |
Failed to allocate memory region for display buffer. |
| GL_ERROR_8026_DMP | nngxDisplayEnv |
A negative value was specified for displayx or displayy. |
| GL_ERROR_8027_DMP | nngxTransferRenderImage |
0 is bound to the current command list. |
| GL_ERROR_8028_DMP | nngxTransferRenderImage |
The maximum number of command requests has accumulated in the current command list. |
| GL_ERROR_8029_DMP | nngxTransferRenderImage |
An invalid value was set for buffer. The object name is wrong, or no region has been allocated for the display buffer. |
| GL_ERROR_802A_DMP | nngxTransferRenderImage |
The current color buffer is invalid. No render buffer is attached, or no region has been allocated for the render buffer. |
| GL_ERROR_802B_DMP | nngxTransferRenderImage |
An invalid value was specified for mode. |
| GL_ERROR_802C_DMP | nngxTransferRenderImage |
The resolution of the color buffer is lower than the resolution of the display buffer to which data is being transferred. |
| GL_ERROR_802D_DMP | nngxTransferRenderImage |
An invalid value was specified for colorx or colory. |
| GL_ERROR_802E_DMP | nngxTransferRenderImage |
The size in pixels of the display buffer to which data is being transferred is larger than color buffer from where data is being sent. |
| GL_ERROR_802F_DMP | nngxTransferRenderImage |
A split command cannot be added because the command buffer is full. |
| GL_ERROR_8030_DMP | nngxSwapBuffers |
An invalid value was specified for display. |
| GL_ERROR_8031_DMP | nngxSwapBuffers |
Either 0 is bound to the current display buffer, or no memory has been allocated for the display buffer. |
| GL_ERROR_8031_DMP | nngxSwapBuffers |
The display region specified by nngxDisplayEnv indicates an area outside the display buffer. |
| GL_ERROR_8033_DMP | nngxGetDisplaybufferParameteri |
An invalid value was specified for pname. |
| GL_ERROR_8034_DMP | nngxStartCmdlistSave |
This function was still in the process of saving commands and was not yet finished when it was called again. |
| GL_ERROR_8035_DMP | nngxStartCmdlistSave |
0 is bound to the current command list. |
| GL_ERROR_8036_DMP | nngxStopCmdlistSave |
Saving of command list has not started. |
| GL_ERROR_8037_DMP | nngxUseSavedCmdlist |
0 is bound to the current command list. |
| GL_ERROR_8038_DMP | nngxUseSavedCmdlist |
An invalid object name was specified for cmdlist. |
| GL_ERROR_803A_DMP | nngxUseSavedCmdlist |
Adding the command exceeds the maximum size for the 3D command buffer or for saving command requests. |
| GL_ERROR_803B_DMP | nngxExportCmdlist |
An invalid value was specified for cmdlist. |
| GL_ERROR_803C_DMP | nngxExportCmdlist |
A value smaller than the size of data being exported was specified for datasize. |
| GL_ERROR_803D_DMP | nngxExportCmdlist |
A region without any accumulated commands was specified for bufferoffset, buffersize, requestid, requestsize. |
| GL_ERROR_803E_DMP | nngxExportCmdlist |
A value not aligned to 8 bytes was specified for bufferoffset, buffersize. |
| GL_ERROR_803F_DMP | nngxExportCmdlist |
An attempt was made to export 3D execution commands that were added using nngxUseSavedCmdlist without copying the 3D command buffer. |
| GL_ERROR_8040_DMP | nngxExportCmdlist |
The 3D command buffer which is executed by a render command request being exported has not been specified correctly by bufferoffset, buffersize. |
| GL_ERROR_8041_DMP | nngxImportCmdlist |
An invalid value was specified for cmdlist. |
| GL_ERROR_8042_DMP | nngxImportCmdlist |
A pointer to invalid data has been specified for data. |
| GL_ERROR_8043_DMP | nngxImportCmdlist |
datasize does not match size of exported data. |
| GL_ERROR_8044_DMP | nngxImportCmdlist |
Adding the imported command exceeds the maximum size for the 3D command buffer or for command requests. |
| GL_ERROR_8045_DMP | nngxImportCmdlist |
Imported the data where the first command request is not a render command request when the 3D command buffer of the destination command list has not been split. |
| GL_ERROR_8046_DMP | nngxGetExportedCmdlistInfo |
A pointer to invalid data has been specified for data. |
| GL_ERROR_8047_DMP | nngxCopyCmdlist |
The current command list was specified for dcmdlist. |
| GL_ERROR_8048_DMP | nngxCopyCmdlist |
An invalid value was specified for scmdlist. |
| GL_ERROR_8049_DMP | nngxCopyCmdlist |
An invalid value was specified for dcmdlist. |
| GL_ERROR_804A_DMP | nngxCopyCmdlist |
The same value was specified for both scmdlist and dcmdlist. |
| GL_ERROR_804B_DMP | nngxCopyCmdlist |
The running command list was specified for dcmdlist. |
| GL_ERROR_804C_DMP | nngxCopyCmdlist |
The size of commands accumulated in scmdlist exceeds the maximum size for the dcmdlist 3D command buffer and command requests. |
| GL_ERROR_804D_DMP | nngxSetCommandGenerationMode |
An invalid value was specified for mode. |
| GL_ERROR_804E_DMP | nngxAdd3DCommand |
0 is bound to the current command list. |
| GL_ERROR_804F_DMP | nngxAdd3DCommand |
An invalid value was specified for buffersize. |
| GL_ERROR_8050_DMP | nngxAdd3DCommand |
copycmd is GL_TRUE and the size of the 3D command buffer exceeds the maximum size. |
| GL_ERROR_8051_DMP | nngxAdd3DCommand |
copycmd is GL_FALSE and the size for command requests exceeds the maximum size. |
| GL_ERROR_8052_DMP | nngxAdd3DCommand |
A value that is not a multiple of 16 has been specified for bufferaddr. |
| GL_ERROR_8053_DMP | nngxSwapBuffers |
The display buffer address is not aligned to 16 bytes. |
| GL_ERROR_8054_DMP | nngxAddCmdlist |
An invalid value was specified for cmdlist. |
| GL_ERROR_8055_DMP | nngxAddCmdlist |
The command list is not currently bound. |
| GL_ERROR_8056_DMP | nngxAddCmdlist |
The current command list is specified for cmdlist. |
| GL_ERROR_8057_DMP | nngxAddCmdlist |
The current command list is running. |
| GL_ERROR_8058_DMP | nngxAddCmdlist |
Insufficient memory for command buffer or command requests. |
| GL_ERROR_8059_DMP | nngxTransferRenderImage |
The block format is set to 32 blocks, but the width/height is not a multiple of 32 for either the transfer source color buffer or the transfer destination display buffer. |
| GL_ERROR_805A_DMP | nngxTransferRenderImage |
When the transfer destination display buffer is set for 24-bit pixels and an 8-block format, the width must be a multiple of 16 for either the transfer source color buffer or the transfer destination display buffer. |
| GL_ERROR_805B_DMP | nngxTransferLinearImage |
0 is bound to the current command list. |
| GL_ERROR_805C_DMP | nngxTransferLinearImage |
The current command list has already accumulated the maximum number of command requests. |
| GL_ERROR_805D_DMP | nngxTransferLinearImage |
The current 3D command buffer is too small. |
| GL_ERROR_805E_DMP | nngxTransferLinearImage |
The object specified in dstid does not exist, or a data address has not been allocated. |
| GL_ERROR_805F_DMP | nngxTransferLinearImage |
The width/height of the transfer destination render buffer is invalid. |
| GL_ERROR_8060_DMP | nngxTransferLinearImage |
target is invalid. |
| GL_ERROR_8061_DMP | nngxMoveCommandbufferPointer |
The command buffer is not currently bound, or offset is specified to move outside the buffer region. |
| GL_ERROR_8062_DMP | nngxAddVramDmaCommand |
A valid command list object is not currently bound. Alternately, the size of the current command request queue is too small. |
| GL_ERROR_8064_DMP | nngxAddVramDmaCommand |
A negative value was specified for size. |
| GL_ERROR_8065_DMP | nngxClearFillCmdlist |
Function was called on a running command list. |
| GL_ERROR_8066_DMP | nngxValidateState |
3D command buffer overflow. |
| GL_ERROR_8067_DMP | nngxTransferLinearImage |
Invalid pixel size for texture or for render buffer to which data are being transferred. |
| GL_ERROR_8068_DMP | nngxFilterBlockImage |
A valid command list object is not currently bound. Alternately, the size of the current command request queue is too small. |
| GL_ERROR_8069_DMP | nngxFilterBlockImage |
srcaddr or dstaddr is not 8-byte aligned. |
| GL_ERROR_806A_DMP | nngxFilterBlockImage |
An invalid value was specified for width or height. |
| GL_ERROR_806B_DMP | nngxFilterBlockImage |
An invalid value was specified for format. |
| GL_ERROR_806C_DMP | nngxValidateState |
An error occurred during validation. |
| GL_ERROR_806D_DMP | nngxSetGasAutoAccumulationUpdate |
0 is bound to the current command list. |
| GL_ERROR_806E_DMP | nngxSetGasAutoAccumulationUpdate |
An invalid value was specified for id. |
| GL_ERROR_806F_DMP | nngxAddL2BTransferCommand |
A valid command list object is not currently bound. Alternately, the size of the current command request queue is too small. |
| GL_ERROR_8070_DMP | nngxAddL2BTransferCommand |
Invalid alignment for srcaddr or dstaddr. |
| GL_ERROR_8071_DMP | nngxAddL2BTransferCommand |
blocksize is invalid. |
| GL_ERROR_8072_DMP | nngxAddL2BTransferCommand |
Value for either width or height is invalid. |
| GL_ERROR_8073_DMP | nngxAddL2BTransferCommand |
format is invalid. |
| GL_ERROR_8074_DMP | nngxAddBlockImageCopyCommand |
A valid command list object is not currently bound. Alternately, the size of the current command request queue is too small. |
| GL_ERROR_8075_DMP | nngxAddBlockImageCopyCommand |
Invalid alignment for srcaddr or dstaddr. |
| GL_ERROR_8076_DMP | nngxAddBlockImageCopyCommand |
totalsize is invalid. |
| GL_ERROR_8077_DMP | nngxAddBlockImageCopyCommand |
Invalid value for srcunit, srcinterval, dstunit, or dstinterval. |
| GL_ERROR_8078_DMP | nngxAddMemoryFillCommand |
A valid command list object is not currently bound. Alternately, the size of the current command request queue is too small. |
| GL_ERROR_8079_DMP | nngxAddMemoryFillCommand |
Invalid alignment for startaddr0 or startaddr1. |
| GL_ERROR_807A_DMP | nngxAddMemoryFillCommand |
size0 or size1 is invalid. |
| GL_ERROR_807B_DMP | nngxAddMemoryFillCommand |
width0 or width1 is invalid. |
| GL_ERROR_807C_DMP | nngxAddB2LTransferCommand |
A valid command list object is not currently bound. Alternately, the size of the current command request queue is too small. |
| GL_ERROR_807D_DMP | nngxAddB2LTransferCommand |
Invalid alignment for srcaddr or dstaddr. |
| GL_ERROR_807E_DMP | nngxAddB2LTransferCommand |
blocksize is invalid. |
| GL_ERROR_807F_DMP | nngxAddB2LTransferCommand |
aamode is invalid. |
| GL_ERROR_8080_DMP | nngxAddB2LTransferCommand |
Value for either srcformat or dstformat is invalid. |
| GL_ERROR_8081_DMP | nngxAddB2LTransferCommand |
The pixel size for the transferred image is larger than that for the original image. |
| GL_ERROR_8082_DMP | nngxAddB2LTransferCommand |
Invalid value for srcwidth, srcheight, dstwidth, or dstheight. |
| GL_ERROR_8083_DMP | nngxAddB2LTransferCommand |
The number of pixels for the width or height of the transferred image is larger than that for the original image. |
| GL_ERROR_8084_DMP | nngxFlush3DCommand |
0 is bound to the current command list. |
| GL_ERROR_8085_DMP | nngxFlush3DCommand |
The number of accumulated command requests has reached the maximum number of command requests. |
| GL_ERROR_8086_DMP | nngxFlush3DCommand |
The capacity of the command buffer is exceeded when the command to "complete the loading of 3D commands" is added to the accumulated 3D command buffer. |
| GL_ERROR_8087_DMP | nngxSwapBuffersByAddress |
An invalid value was specified for display. |
| GL_ERROR_8088_DMP | nngxSwapBuffersByAddress |
An invalid value was specified for addr. |
| GL_ERROR_8089_DMP | nngxSwapBuffersByAddress |
An invalid value was specified for addrB. |
| GL_ERROR_808A_DMP | nngxSwapBuffersByAddress |
An invalid value was specified for width. |
| GL_ERROR_808B_DMP | nngxSwapBuffersByAddress |
An invalid value was specified for format. |
| GL_ERROR_808C_DMP | nngxAdd3DCommandNoCacheFlush |
0 is bound to the current command list. |
| GL_ERROR_808D_DMP | nngxAdd3DCommandNoCacheFlush |
An invalid value was specified for buffersize. |
| GL_ERROR_808E_DMP | nngxAdd3DCommandNoCacheFlush |
A value that is not a multiple of 16 has been specified for bufferaddr. |
| GL_ERROR_808F_DMP | nngxAdd3DCommandNoCacheFlush |
The command request size exceeds the maximum size. |
| GL_ERROR_8090_DMP | nngxAddVramDmaCommandNoCacheFlush |
A valid command list object is not currently bound. Alternately, the size of the current command request queue is too small. |
| GL_ERROR_8091_DMP | nngxAddVramDmaCommandNoCacheFlush |
A negative value was specified for size. |
| GL_ERROR_8092_DMP | nngxUseSavedCmdlistNoCacheFlush |
0 is bound to the current command list. |
| GL_ERROR_8093_DMP | nngxUseSavedCmdlistNoCacheFlush |
An invalid object name was specified for cmdlist. |
| GL_ERROR_8095_DMP | nngxUseSavedCmdlistNoCacheFlush |
Adding the command exceeds the maximum size for the 3D command buffer or for saving command requests. |
| GL_ERROR_8096_DMP | nngxAddJumpCommand |
0 is bound to the current command list. |
| GL_ERROR_8097_DMP | nngxAddJumpCommand |
A value of 0 or less was specified for buffersize. |
| GL_ERROR_8098_DMP | nngxAddJumpCommand |
buffersize is not a multiple of 16. |
| GL_ERROR_8099_DMP | nngxAddJumpCommand |
bufferaddr is not a multiple of 16. |
| GL_ERROR_809A_DMP | nngxAddJumpCommand |
The current 3D command buffer was just flushed. |
| GL_ERROR_809B_DMP | nngxAddJumpCommand |
Adding the command exceeds the maximum size for the command requests. |
| GL_ERROR_809C_DMP | nngxAddJumpCommand |
Adding the command exceeds the maximum size for the 3D command buffer. |
| GL_ERROR_809D_DMP | nngxAddSubroutineCommand |
0 is bound to the current command list. |
| GL_ERROR_809E_DMP | nngxAddSubroutineCommand |
A value of 0 or less was specified for buffersize. |
| GL_ERROR_809F_DMP | nngxAddSubroutineCommand |
buffersize is not a multiple of 16. |
| GL_ERROR_80A0_DMP | nngxAddSubroutineCommand |
bufferaddr is not a multiple of 16. |
| GL_ERROR_80A1_DMP | nngxAddSubroutineCommand |
Adding the command exceeds the maximum size for the 3D command buffer. |
| GL_ERROR_80A2_DMP | nngxStartProfiling |
An invalid value was specified for item. |
| GL_ERROR_80A3_DMP | nngxStopProfiling |
An invalid value was specified for item. |
| GL_ERROR_80A4_DMP | nngxGetProfilingResult |
An invalid value was specified for item. |
| GL_ERROR_80A5_DMP | nngxSetProfilingParameter |
An invalid value was specified for pname. |
| GL_ERROR_80A6_DMP | nngxSetProfilingParameter |
An invalid value was specified for param. |
| GL_ERROR_80A9_DMP | nngxFlush3DCommandPartially |
0 is bound to the current command list. |
| GL_ERROR_80AA_DMP | nngxFlush3DCommandPartially |
The number of accumulated command requests has reached the maximum number of command requests. |
| GL_ERROR_80AB_DMP | nngxFlush3DCommandPartially |
The capacity of the command buffer is exceeded when the command to "complete the loading of 3D commands" is added to the accumulated 3D command buffer. |
| GL_ERROR_80AC_DMP | nngxFlush3DCommandPartially |
A value of 0 or less, or a value that is not a multiple of 16 was specified for buffersize. |
| GL_ERROR_80AD_DMP | nngxFlush3DCommandPartially |
The current command list is running. |
| GL_ERROR_80AE_DMP | nngxFlush3DCommandNoCacheFlush |
0 is bound to the current command list. |
| GL_ERROR_80AF_DMP | nngxFlush3DCommandNoCacheFlush |
The number of accumulated command requests has reached the maximum number of command requests. |
| GL_ERROR_80B0_DMP | nngxFlush3DCommandNoCacheFlush |
The capacity of the command buffer is exceeded when the command to "complete the loading of 3D commands" is added to the accumulated 3D command buffer. |
| GL_ERROR_80B1_DMP | nngxRunCmdlistByID |
The command list specified by cmdlist does not have a region allocated for command buffer and command requests. |
| GL_ERROR_80B2_DMP | nngxValidateState | 3D command buffer not configured (command list not bound). |
GL_ERROR_80B3_DMP |
nngxValidateState |
When an attempt is made to validate a state related to a program object, in a state where a program object has not been set. |
GL_ERROR_80B4_DMP |
nngxGetInitializationCommand |
When datasize is smaller than the obtained command size. |
| GL_ERROR_9000_DMP | nngxSwapBuffers |
When display mode is set to NN_GX_DISPLAYMODE_STEREO, either 0 is bound to NN_GX_DISPLAY0_EXT or no memory has been allocated for the display buffer. |
| GL_ERROR_9001_DMP | nngxSwapBuffers |
When display mode is set to NN_GX_DISPLAYMODE_STEREO, the display region specified by nngxDisplayEnv lies outside the display buffer. |
| GL_ERROR_9002_DMP | nngxSwapBuffers |
When the display mode is set to NN_GX_DISPLAYMODE_STEREO, the display buffer resolutions, formats, and memory regions bound to NN_GX_DISPLAY0 and NN_GX_DISPLAY0_EXT are different. |
| GL_ERROR_9003_DMP | nngxSetDisplayMode |
An invalid value was specified for mode. |
GL_ERROR_80B3_DMP and GL_ERROR_80B4_DMP.CONFIDENTIAL