X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fsurfacedialog.cpp;h=0d39a951b3cf8740ef75f95b0ad984187bb1d224;hb=51fa51ccb2eb99ad47e63ca2b44d44395e064040;hp=9ae43fd7e130fcbe6beb03047e6bacf29c4c5c72;hpb=34e9180f07468b678b08393b72a3558f70495692;p=xonotic%2Fnetradiant.git diff --git a/radiant/surfacedialog.cpp b/radiant/surfacedialog.cpp index 9ae43fd7..0d39a951 100644 --- a/radiant/surfacedialog.cpp +++ b/radiant/surfacedialog.cpp @@ -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";