mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Move DirectX Texture2D initialization to after OpenVR Init
This allows us to create the texture on the correct GPU.
This commit is contained in:
@@ -62,6 +62,10 @@ namespace VRCX
|
||||
|
||||
public void RenderToTexture(Texture2D texture)
|
||||
{
|
||||
// Safeguard against uninitialized texture
|
||||
if (texture == null)
|
||||
return;
|
||||
|
||||
_paintBufferLock.EnterReadLock();
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user