mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-14 17:14:29 +02:00
minor fix
This commit is contained in:
@@ -669,6 +669,7 @@ void vrInit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void vrInitTargets() {
|
void vrInitTargets() {
|
||||||
|
if (!hmd) return;
|
||||||
uint32_t width, height;
|
uint32_t width, height;
|
||||||
hmd->GetRecommendedRenderTargetSize(&width, &height);
|
hmd->GetRecommendedRenderTargetSize(&width, &height);
|
||||||
Core::eyeTex[0] = new Texture(width, height, TexFormat::FMT_RGBA);
|
Core::eyeTex[0] = new Texture(width, height, TexFormat::FMT_RGBA);
|
||||||
|
Reference in New Issue
Block a user