mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- moved gl_shader.cpp to 'common'.
This commit is contained in:
parent
1346787e29
commit
cb1e8a177f
7 changed files with 6 additions and 13 deletions
|
@ -940,7 +940,6 @@ set (PCH_SOURCES
|
|||
rendering/2d/v_blend.cpp
|
||||
rendering/gl/renderer/gl_renderer.cpp
|
||||
rendering/gl/renderer/gl_stereo3d.cpp
|
||||
rendering/gl/shaders/gl_shader.cpp
|
||||
rendering/gl/system/gl_framebuffer.cpp
|
||||
rendering/hwrenderer/hw_entrypoint.cpp
|
||||
rendering/hwrenderer/data/hw_vertexbuilder.cpp
|
||||
|
@ -1145,6 +1144,7 @@ set (PCH_SOURCES
|
|||
common/rendering/gl/gl_buffers.cpp
|
||||
common/rendering/gl/gl_hwtexture.cpp
|
||||
common/rendering/gl/gl_samplers.cpp
|
||||
common/rendering/gl/gl_shader.cpp
|
||||
common/rendering/gl/gl_shaderprogram.cpp
|
||||
common/scripting/core/dictionary.cpp
|
||||
common/scripting/core/dynarrays.cpp
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "hw_cvars.h"
|
||||
#include "flatvertices.h"
|
||||
#include "hwrenderer/scene/hw_skydome.h"
|
||||
#include "gl/shaders/gl_shader.h"
|
||||
#include "gl_shader.h"
|
||||
#include "gl/renderer/gl_renderer.h"
|
||||
#include "hw_lightbuffer.h"
|
||||
#include "gl_renderbuffers.h"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include "cmdlib.h"
|
||||
#include "md5.h"
|
||||
#include "m_misc.h"
|
||||
#include "gl/shaders/gl_shader.h"
|
||||
#include "gl_shader.h"
|
||||
#include "hw_shaderpatcher.h"
|
||||
#include "hwrenderer/data/shaderuniforms.h"
|
||||
#include "hwrenderer/scene/hw_viewpointuniforms.h"
|
||||
|
@ -44,7 +44,6 @@
|
|||
#include "gl_debug.h"
|
||||
#include "matrix.h"
|
||||
#include "gl/renderer/gl_renderer.h"
|
||||
#include "gl/shaders/gl_shader.h"
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "gl_system.h"
|
||||
#include "gl/shaders/gl_shader.h"
|
||||
#include "gl_shader.h"
|
||||
#include "hwrenderer/postprocessing/hw_postprocess.h"
|
||||
|
||||
namespace OpenGLRenderer
|
||||
|
|
|
@ -37,15 +37,9 @@
|
|||
#include "v_video.h"
|
||||
#include "m_png.h"
|
||||
#include "filesystem.h"
|
||||
#include "doomstat.h"
|
||||
#include "i_time.h"
|
||||
#include "p_effect.h"
|
||||
#include "d_player.h"
|
||||
#include "a_dynlight.h"
|
||||
#include "cmdlib.h"
|
||||
#include "version.h"
|
||||
#include "g_game.h"
|
||||
#include "swrenderer/r_swscene.h"
|
||||
#include "hwrenderer/utility/hw_clock.h"
|
||||
|
||||
#include "gl_interface.h"
|
||||
|
|
|
@ -355,7 +355,7 @@ void DFrameBuffer::SetViewportRects(IntRect *bounds)
|
|||
int screenWidth = GetWidth();
|
||||
int screenHeight = GetHeight();
|
||||
float scaleX, scaleY;
|
||||
scaleX = MIN(clientWidth / (float)screenWidth, clientHeight / ((float)screenHeight * ViewportPixelAspect()));
|
||||
scaleX = std::min(clientWidth / (float)screenWidth, clientHeight / ((float)screenHeight * ViewportPixelAspect()));
|
||||
scaleY = scaleX * ViewportPixelAspect();
|
||||
mOutputLetterbox.width = (int)round(screenWidth * scaleX);
|
||||
mOutputLetterbox.height = (int)round(screenHeight * scaleY);
|
||||
|
|
Loading…
Reference in a new issue