GL change TH1 label color

Hi,
Im using root 5.36. I began to use ->SetCanvasPreferGL(true) option,
but for some reason the label colors can’t be changed when this option is on, it always stays black. Even if you change it from the context menu not from the code, the color keeps being overwritten and returns to it default value ( 1 … black).
Does any one know a way I can fix that?

Thank you

It works for me. With 5.34 (5.36 doesn’t exist).

$ root
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   5.34/37      6 April 2016   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

ROOT 5.34/37 (heads/v5-34-00-patches@v5-34-36-1-g4008982, May 17 2016, 11:21:00 on macosx64)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] gStyle->SetCanvasPreferGL(true)
root [1] hpx->Draw()
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1
root [2] 


My apologies, 5.34/36

Thank you for your reply!
Are you sure that you are using OpenGL for this test graph? because mine doesn’t, as you can see from the attachment, I had see everything to red and only the color of the ticks had updated to red. :cry:

Am I doing something wrong?
My my code is complied using VS2013, on windows, and the canvas is embedded into a TRootEmbeddedCanvas, everything works fine and colors get updated, with the only exception of when PreferGL oprion is set…


Yes … see what I did in my previous post …

I am on Mac …
May be that’s a windows problem … We’ll check

Hi,

I can reproduce the problem. I will investigate.

Cheers, Bertrand.

Hi,

This is now fixed in the master and the v5-34-00-patches branch.

Cheers, Bertrand.

Thank you!