Skip to content

Instantly share code, notes, and snippets.

View pollend's full-sized avatar
:octocat:
working on random stuff

Michael Pollind pollend

:octocat:
working on random stuff
View GitHub Profile
#include "Forge/Config.h"
#include "Common_3/OS/Interfaces/IOperatingSystem.h"
#include "Common_3/Utilities/Interfaces/IFileSystem.h"
#include "Forge/Graphics/TF_GPUConfig.h"
#include <X11/Xlib.h>
#ifdef TF_TARGET_LINUX
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.
load(
"@prelude//cxx:comp_db.bzl",
"CxxCompilationDbInfo",
)
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
/* Copyright (c) 2021 Hans-Kristian Arntzen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
error: 'ubit' is not a valid command.
(lldb) bt
* thread #1, name = 'Editor', stop reason = breakpoint 1.1
frame #0: 0x00007ffff0d9d7d3 libEditorLib.so`AzToolsFramework::ToolsApplication::UndoPressed(this=0x00007fffffffc080) at ToolsApplication.cpp:117
9:17
frame #1: 0x00007ffcce96e85b libComponentEntityEditorPlugin.so`decltype(*InvokeTraits::forward<AzToolsFramework::ToolsApplicationRequests*&>(fp0)
.*fp()) AZStd::Internal::INVOKE<void (AzToolsFramework::ToolsApplicationRequests::*)(), AzToolsFramework::ToolsApplicationRequests*&, void>(f=0x00007
fffffffaf48, arg0=0x00007fffffffaef8) at invoke_traits.h:177:20
frame #2: 0x00007ffcce96e7bf libComponentEntityEditorPlugin.so`AZStd::invoke_result<void (AzToolsFramework::ToolsApplicationRequests::*)(), AzToo
lsFramework::ToolsApplicationRequests*&>::type AZStd::invoke<void (AzToolsFramework::ToolsApplicationRequests::*)(), AzToolsFramework::ToolsApplicati
diff --git a/source/cgame/cg_players.cpp b/source/cgame/cg_players.cpp
index a1aeba8c6..8a9589546 100644
--- a/source/cgame/cg_players.cpp
+++ b/source/cgame/cg_players.cpp
@@ -270,7 +270,6 @@ void CG_LoadClientInfo( cg_clientInfo_t *ci, const char *info, int client )
s = Info_ValueForKey( info, "m" );
ci->modelindex = s && s[0] ? atoi( s ) : 0;
-
s = Info_ValueForKey( info, "steam_id" );
void R_ETC1DecodeBlock_RGBA8( uint8_t *block, struct uint_8_4 colors[ETC1_BLOCK_WIDTH * ETC1_BLOCK_HEIGHT] )
{
// implementation: https://registry.khronos.org/OpenGL/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt
// BCF -- Base Color Flag
// no diff bit is set
// 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
// -----------------------------------------------
// | base col1 | base col2 | base col1 | base col2 |
// | R1 (4bits)| R2 (4bits)| G1 (4bits)| G2 (4bits)|
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: false
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: true
MESA_VK_TRACE=rgp MESA_VK_TRACE_FRAME=500 ./Amnesia
cMaterial* cMaterialManager::LoadFromFile(const tString& asName, const tWString& asPath) {
tinyxml2::XMLDocument document;
FILE *pFile = cPlatform::OpenFile(asPath, _W("rb"));
if(!pFile) {
LOGF(LogLevel::eERROR, "failed to load material: %s", asName.c_str());
return nullptr;
}
document.LoadFile(pFile);