New editor tabs.

This commit is contained in:
Justin Marshall
2026-05-14 18:37:41 -07:00
parent 16bd1baf35
commit 44f2e67078
18 changed files with 2775 additions and 62 deletions
+5 -1
View File
@@ -84,21 +84,25 @@ extern std::mutex g_graphicsDeviceContextMutex;
class idGraphicsDeviceContextHelper
{
public:
idGraphicsDeviceContextHelper(HDC inDC, HGLRC inRC)
idGraphicsDeviceContextHelper(HDC inDC, HGLRC inRC, bool tsaaEnabled = false)
: dc(inDC)
, rc(inRC)
{
this->tsaaEnabled = tsaaEnabled;
g_graphicsDeviceContextMutex.lock();
wglMakeCurrent(dc, rc);
}
~idGraphicsDeviceContextHelper()
{
QD3D12_EnableTAA(tsaaEnabled);
SwapBuffers(dc);
QD3D12_EnableTAA(true);
g_graphicsDeviceContextMutex.unlock();
}
private:
bool tsaaEnabled = false;
HDC dc = nullptr;
HGLRC rc = nullptr;
};