]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/surfacedialog.cpp
multicontext: optional per-viewport texture bind
[xonotic/netradiant.git] / radiant / surfacedialog.cpp
index 9ae43fd7e130fcbe6beb03047e6bacf29c4c5c72..0d39a951b3cf8740ef75f95b0ad984187bb1d224 100644 (file)
@@ -1496,7 +1496,8 @@ void CopyPointsFromSelectedFace( void ){
        }
 
        Face & face = g_SelectedFaceInstances.last().getFace();
-       textureNum = face.getShader().m_state->getTexture().texture_number;
+       // FIXME: is it called by CamWindow thread?
+       textureNum = RequestBindTextureNumber( face.getShader().m_state->getTexture(), VP_CAMWINDOW );
        textureSize.x() = face.getShader().m_state->getTexture().width;
        textureSize.y() = face.getShader().m_state->getTexture().height;
 //globalOutputStream() << "--> Texture #" << textureNum << ": " << textureSize.x() << " x " << textureSize.y() << "...\n";