Merge remote-tracking branch 'tmj/master' into sim

This commit is contained in:
milek7
2020-10-18 23:35:14 +02:00
244 changed files with 54164 additions and 11636 deletions

View File

@@ -2,7 +2,7 @@
#include "openvr_imp.h"
#include "Logs.h"
#include "Globals.h"
#include "opengl33renderer.h"
#include "renderer.h"
vr_openvr::vr_openvr()
{
@@ -171,9 +171,9 @@ component_done:
TSubModel *sm = controllers[i]->pending_textures[t].first;
const vr::TextureID_t texture_id = controllers[i]->pending_textures[t].second;
if (GfxRenderer.Material(sm->GetMaterial()).textures[0] == null_handle)
if (GfxRenderer->Material(sm->GetMaterial()).textures[0] == null_handle)
sm->ReplaceMaterial("internal_src:OPENVR" + std::to_string(texture_id));
opengl_texture &tex = GfxRenderer.Texture(GfxRenderer.Material(sm->GetMaterial()).textures[0]);
opengl_texture &tex = GfxRenderer->Texture(GfxRenderer->Material(sm->GetMaterial()).textures[0]);
if (tex.is_stub()) {
vr::RenderModel_TextureMap_t *texturemap;