From 6aa137341a7000b7dad57360e9b2fee831fce434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 22 Feb 2023 20:13:39 +0100 Subject: [PATCH] GL: yay, can use GL_PACK_ROW_LENGTH_NV now. Fixes to long-obsolete APIs out of the blue. Interesting. --- src/Magnum/GL/Implementation/RendererState.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Magnum/GL/Implementation/RendererState.cpp b/src/Magnum/GL/Implementation/RendererState.cpp index 8a62abce3..69cae0f17 100644 --- a/src/Magnum/GL/Implementation/RendererState.cpp +++ b/src/Magnum/GL/Implementation/RendererState.cpp @@ -241,12 +241,11 @@ void RendererState::applyPixelStorageInternal(const Magnum::PixelStorage& storag #if !(defined(MAGNUM_TARGET_GLES2) && defined(MAGNUM_TARGET_WEBGL)) if(state.rowLength == GL::Implementation::RendererState::PixelStorage::DisengagedValue || state.rowLength != storage.rowLength()) { - /** @todo Use real value for GL_PACK_ROW_LENGTH_NV when it is in headers */ #ifndef MAGNUM_TARGET_GLES2 glPixelStorei(isUnpack ? GL_UNPACK_ROW_LENGTH : GL_PACK_ROW_LENGTH, state.rowLength = storage.rowLength()); #elif !defined(MAGNUM_TARGET_WEBGL) - glPixelStorei(isUnpack ? GL_UNPACK_ROW_LENGTH_EXT : 0xD02 /*GL_PACK_ROW_LENGTH_NV*/, + glPixelStorei(isUnpack ? GL_UNPACK_ROW_LENGTH_EXT : GL_PACK_ROW_LENGTH_NV, state.rowLength = storage.rowLength()); #endif }