mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
mark all local variables as static
This commit is contained in:
@ -47,10 +47,10 @@ namespace Clipper
|
||||
{
|
||||
enum { NUM_CLIPPED_VERTICES = 33, NUM_INDICES = NUM_CLIPPED_VERTICES + 3 };
|
||||
|
||||
float m_ViewOffset[2];
|
||||
static float m_ViewOffset[2];
|
||||
|
||||
OutputVertexData ClippedVertices[NUM_CLIPPED_VERTICES];
|
||||
OutputVertexData *Vertices[NUM_INDICES];
|
||||
static OutputVertexData ClippedVertices[NUM_CLIPPED_VERTICES];
|
||||
static OutputVertexData *Vertices[NUM_INDICES];
|
||||
|
||||
void DoState(PointerWrap &p)
|
||||
{
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "VideoCommon/PixelEngine.h"
|
||||
|
||||
|
||||
u8 efb[EFB_WIDTH*EFB_HEIGHT*6];
|
||||
static u8 efb[EFB_WIDTH*EFB_HEIGHT*6];
|
||||
|
||||
namespace EfbInterface
|
||||
{
|
||||
|
@ -16,11 +16,11 @@
|
||||
|
||||
namespace HwRasterizer
|
||||
{
|
||||
float efbHalfWidth;
|
||||
float efbHalfHeight;
|
||||
bool hasTexture;
|
||||
static float efbHalfWidth;
|
||||
static float efbHalfHeight;
|
||||
static bool hasTexture;
|
||||
|
||||
u8 *temp;
|
||||
static u8 *temp;
|
||||
|
||||
// Programs
|
||||
static GLuint colProg, texProg, clearProg;
|
||||
|
@ -32,23 +32,23 @@ static inline s32 FixedLog2(float f)
|
||||
|
||||
namespace Rasterizer
|
||||
{
|
||||
Slope ZSlope;
|
||||
Slope WSlope;
|
||||
Slope ColorSlopes[2][4];
|
||||
Slope TexSlopes[8][3];
|
||||
static Slope ZSlope;
|
||||
static Slope WSlope;
|
||||
static Slope ColorSlopes[2][4];
|
||||
static Slope TexSlopes[8][3];
|
||||
|
||||
s32 vertex0X;
|
||||
s32 vertex0Y;
|
||||
float vertexOffsetX;
|
||||
float vertexOffsetY;
|
||||
static s32 vertex0X;
|
||||
static s32 vertex0Y;
|
||||
static float vertexOffsetX;
|
||||
static float vertexOffsetY;
|
||||
|
||||
s32 scissorLeft = 0;
|
||||
s32 scissorTop = 0;
|
||||
s32 scissorRight = 0;
|
||||
s32 scissorBottom = 0;
|
||||
static s32 scissorLeft = 0;
|
||||
static s32 scissorTop = 0;
|
||||
static s32 scissorRight = 0;
|
||||
static s32 scissorBottom = 0;
|
||||
|
||||
Tev tev;
|
||||
RasterBlock rasterBlock;
|
||||
static Tev tev;
|
||||
static RasterBlock rasterBlock;
|
||||
|
||||
void DoState(PointerWrap &p)
|
||||
{
|
||||
|
@ -33,14 +33,14 @@ enum
|
||||
// STATE_TO_SAVE
|
||||
// variables
|
||||
|
||||
const int commandBufferSize = 1024 * 1024;
|
||||
const int maxCommandBufferWrite = commandBufferSize - GATHER_PIPE_SIZE;
|
||||
u8 commandBuffer[commandBufferSize];
|
||||
u32 readPos;
|
||||
u32 writePos;
|
||||
int et_UpdateInterrupts;
|
||||
volatile bool interruptSet;
|
||||
volatile bool interruptWaiting;
|
||||
static const int commandBufferSize = 1024 * 1024;
|
||||
static const int maxCommandBufferWrite = commandBufferSize - GATHER_PIPE_SIZE;
|
||||
static u8 commandBuffer[commandBufferSize];
|
||||
static u32 readPos;
|
||||
static u32 writePos;
|
||||
static int et_UpdateInterrupts;
|
||||
static volatile bool interruptSet;
|
||||
static volatile bool interruptWaiting;
|
||||
|
||||
CPReg cpreg; // shared between gfx and emulator thread
|
||||
|
||||
|
@ -32,7 +32,7 @@ static std::string s_sScreenshotName;
|
||||
|
||||
// Rasterfont isn't compatible with GLES
|
||||
// degasus: I think it does, but I can't test it
|
||||
RasterFont* s_pfont = nullptr;
|
||||
static RasterFont* s_pfont = nullptr;
|
||||
|
||||
void SWRenderer::Init()
|
||||
{
|
||||
|
Reference in New Issue
Block a user