1
Window / Re: Created GL context does not meet requested
« on: October 06, 2018, 10:01:36 pm »
Fixed the issue, created #1495. Even if the logic does not meet what you expect from OpenGL, it should be sound.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I have simply taken the origin sf::Text source code and modified it to fit my needsIf all you need is access to the vertices of sf::Text, you can manage without duplicating its code by doing something along the lines of:
These resources seem to be deallocated correctly, have you made sure that the corresponding code is not reached (by debug output or breakpoints)?Now I have, for the two 48-byte leaks. Placing breakpoints in WglContext c'tors and d'tor, it seems that 3 instances are created but only 1 is deleted.
Visual Studio's leak detector stopping too early is as well an issue as starting too late. It cannot see the deallocation after its lifetime, and so it regards such resources as leaked.Why are you saying that? You don't use #pragma init_seg in SFML, why shouldn't this facility be reliable?
No, it only means that the VS detector didn't see any leaks for 2.3.2. And this does not imply that master is leaking...Actually I use master of 2.5 months ago, but I believe that nothing has changed in this regard.
Then again the PR itself could probably go either way. In the end it's not really that important.Sure. The important thing to ask is, what process do you use to decide regarding undecided PRs?
VS debug runtime tracks all memory allocations from the start, including non-local static objects. This line only triggers reporting, so if you moved it to the end of main() you would get exactly the same 3 leaks.SFML has certain global states, so if you start tracking memory allocations only after main() is called, you're already missing things.::_CrtSetDbgFlag(::_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);as the first line of main().