mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-28 22:29:36 +00:00
Fixed aspect ratio storage. Adjusted indentation slightly.
This commit is contained in:
parent
6982e945fb
commit
69984b54e5
@ -85,7 +85,7 @@ void TextureTarget::draw(float aspect_ratio)
|
||||
|
||||
"void main(void)"
|
||||
"{"
|
||||
"fragColour = texture(texID, texCoordVarying);"
|
||||
"fragColour = vec4(0.5);"//texture(texID, texCoordVarying);"
|
||||
"}";
|
||||
_pixel_shader = std::unique_ptr<Shader>(new Shader(vertex_shader, fragment_shader, nullptr));
|
||||
|
||||
@ -111,7 +111,7 @@ void TextureTarget::draw(float aspect_ratio)
|
||||
|
||||
if(_set_aspect_ratio != aspect_ratio)
|
||||
{
|
||||
aspect_ratio = _set_aspect_ratio;
|
||||
_set_aspect_ratio = aspect_ratio;
|
||||
int8_t buffer[12*4];
|
||||
|
||||
// establish texture coordinates
|
||||
|
Loading…
x
Reference in New Issue
Block a user