mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
wip
This commit is contained in:
1 parent
d2002eab39
commit
415ea50afa
7 files changed
+273
-23
No files matched your search
@@ -24,13 +24,13 @@ DrawBuffer::~DrawBuffer() {
|
||||
delete [] verts_;
|
||||
}
|
||||
|
||||
void DrawBuffer::Init(Draw::DrawContext *t3d, Draw::Pipeline *pipeline) {
|
||||
void DrawBuffer::Init(Draw::DrawContext *draw, Draw::Pipeline *pipeline) {
|
||||
using namespace Draw;
|
||||
|
||||
if (inited_)
|
||||
return;
|
||||
|
||||
draw_ = t3d;
|
||||
draw_ = draw;
|
||||
inited_ = true;
|
||||
|
||||
if (pipeline->RequiresBuffer()) {
|
||||
@@ -40,7 +40,7 @@ void DrawBuffer::Init(Draw::DrawContext *t3d, Draw::Pipeline *pipeline) {
|
||||
}
|
||||
}
|
||||
|
||||
Draw::InputLayout *DrawBuffer::CreateInputLayout(Draw::DrawContext *t3d) {
|
||||
Draw::InputLayout *DrawBuffer::CreateInputLayout(Draw::DrawContext *draw) {
|
||||
using namespace Draw;
|
||||
InputLayoutDesc desc = {
|
||||
{
|
||||
@@ -53,7 +53,7 @@ Draw::InputLayout *DrawBuffer::CreateInputLayout(Draw::DrawContext *t3d) {
|
||||
},
|
||||
};
|
||||
|
||||
return t3d->CreateInputLayout(desc);
|
||||
return draw->CreateInputLayout(desc);
|
||||
}
|
||||
|
||||
void DrawBuffer::Shutdown() {
|
||||
|
||||
Reference in new issue
Block a user