Skip to content

Commit

Permalink
fix global variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Hannah <[email protected]>
  • Loading branch information
hannahmkrasnick committed Nov 28, 2024
1 parent 7fedbd1 commit f886de0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/apps/ociodisplay/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static const std::array<std::pair<const char *, OCIO::OptimizationFlags>, 5> Opt
float g_exposure_fstop{0.0f};
float g_display_gamma{1.0f};
int g_channelHot[4]{1, 1, 1, 1}; // show rgb
int viewsMenuID;
int g_viewsMenuID;

OCIO::OglAppRcPtr g_oglApp;

Expand Down Expand Up @@ -290,7 +290,7 @@ void updateViewsMenu(const char * displayValue)
{

OCIO::ConstConfigRcPtr config = OCIO::GetCurrentConfig();
glutSetMenu(viewsMenuID);
glutSetMenu(g_viewsMenuID);
int numViewsMenuItems = glutGet(GLUT_MENU_NUM_ITEMS);
for (int i = numViewsMenuItems; i > 0; --i)
{
Expand Down Expand Up @@ -551,7 +551,7 @@ static void PopulateOCIOMenus()
glutAddMenuEntry(config->getDisplay(i), i);
}

viewsMenuID = glutCreateMenu(transform_CB);
g_viewsMenuID = glutCreateMenu(transform_CB);
const char * defaultDisplay = config->getDefaultDisplay();
updateViewsMenu(defaultDisplay);

Expand All @@ -569,7 +569,7 @@ static void PopulateOCIOMenus()

glutCreateMenu(menuCallback);
glutAddSubMenu("Image ColorSpace", csMenuID);
glutAddSubMenu("Views", viewsMenuID);
glutAddSubMenu("Views", g_viewsMenuID);
glutAddSubMenu("Display", displayMenuID);
glutAddSubMenu("Looks Override", lookMenuID);
glutAddSubMenu("Optimization", optimizationMenuID);
Expand Down

0 comments on commit f886de0

Please sign in to comment.